Repository navigation
Conversation
Signed-off-by: Shuvadipta Das <shuvadiptadas8820@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #147. Fixes #124, fixes #135, fixes #136.
Bumps Souin to v1.7.10 and syncs the Caddy wrapper with the changes made to Souin's own Caddy plugin since v1.7.9. Code and tests are ported from
darkweak/souin/plugins/caddyat v1.7.10, keeping this repository's style.Changes
httpcache.goreverse_proxyrefreshes the entry.disable_coalescingoption (fix(middleware): don't re-run a coalesced flight in the caller that executed it darkweak/souin#887, #888).configuration.go: parse simplefssizeanddirectory_size(with units, e.g.10MB) and report invalid values instead of silently using 0 (Caddyfile: simplefs directory_size with a human-readable value (10mb) silently disables the disk ceiling darkweak/souin#847).dispatch.go: guard the type of the RedisInitAddressvalue.go.mod/go.sum: Souin v1.7.10. It requires Go 1.27.1, Caddy v2.11.7 and storages/core v0.0.22; the remaining churn is the transitive upgrades those require plusgo mod tidy.Tests
swr_test.go,disable_coalescing_test.go,configuration_test.go.TestAuthenticatedRoute,TestMustRevalidate,TestExpires,TestSetCookieNotStored,TestAPIPlatformInvalidation.go test ./...andgo vet ./...pass.TestStaleWhileRevalidateRefreshesThroughReverseProxyfails without thehttpcache.gochange ("the background refresh never stored the new response (origin calls: 1)") and passes with it.no-cacheand serves cached response #135 and Validation doesn't work #136 were checked with their reproduction steps: they fail on master and pass on this branch.Also verified in production (Caddy v2.11.9, otter storage): expired pages are served stale and refreshed a few seconds later.
Disclosure: prepared with AI assistance (Claude). The code and tests are ported from Souin's plugin; I reviewed every change, can explain it, and ran the test suite and production checks myself.