Skip to content

Revalidate -- how to avoid browser cache? #558

Answered by lukebarton
lukebarton asked this question in General
Discussion options

You must be logged in to vote

I think I've realised the answer: don't apply cache-control, even a short private one, to things that mutate. This avoids the issue altogether.

/post/1234 with cache-control: max-age=60 then updating /post/1234 still has the same sort of problem, but maybe it's not such a big issue. IDK, I'm happy to assume it's not an issue that affects most people.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@lukebarton
Comment options

@SleeplessByte
Comment options

Comment options

You must be logged in to vote
1 reply
@sergiodxa
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by lukebarton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants