Skip to content

feat(dependencies): bump to Souin v1.7.10 - #148

Open
5h0ov wants to merge 1 commit into
caddyserver:masterfrom
5h0ov:fix/forward-souin-request
Open

5h0ov wants to merge 1 commit into
caddyserver:masterfrom
5h0ov:fix/forward-souin-request

Conversation

@5h0ov

@5h0ov 5h0ov commented Dec 1, 2026

Copy link
Copy Markdown

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/caddy at v1.7.10, keeping this repository's style.

Changes

Tests

  • New, from Souin's plugin: swr_test.go, disable_coalescing_test.go, configuration_test.go.
  • Updated to v1.7.10 behaviour, matching Souin's updated copies: TestAuthenticatedRoute, TestMustRevalidate, TestExpires, TestSetCookieNotStored, TestAPIPlatformInvalidation.
  • go test ./... and go vet ./... pass. TestStaleWhileRevalidateRefreshesThroughReverseProxy fails without the httpcache.go change ("the background refresh never stored the new response (origin calls: 1)") and passes with it.
  • Set-cookie header being cached #124, caddy ignores no-cache and 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.

Signed-off-by: Shuvadipta Das <shuvadiptadas8820@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant