This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
Replies: 2 comments 1 reply
-
This was added here: #36 |
Beta Was this translation helpful? Give feedback.
0 replies
-
#36 (comment) - I think this reasoning was flawed, in that those will initiate sessions and have a set-cookie in the response, and therefore should be already be un-cacheable. Perhaps a safer change would be to check if the response has a Set-Cookie, and if so, set |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By default, we don't cache action reqs:
upper/src/EventRegistrar.php
Line 65 in bd6cd34
For example, we're using Sprig on a site, and we want the responses cached. While the responses are all GETs with query params, they all have
Cache-Control: private
, because they are action reqs.I'm wondering why, and if this is necessary at all?
Seems like any action reqs that weren't cacheable would already be naturally, either by being a POST or having a
set-cookie
header triggered from asession_start()
;Beta Was this translation helpful? Give feedback.
All reactions