Skip to content

Why is the server cache 2 times the browser cache #3258

Answered by rickstaa
rickstaa asked this question in Q&A
Discussion options

You must be logged in to vote

I use CACHE/2 in the browser for the following specific scenario:

  1. Imagine one user requests a card at 12:00. In this scenario, the user's browser cache is configured to retain content for 2 hours, while the CDN cache is set to 4 hours.

  2. Now, consider another user who visits the same card 2 hours before the server cache (CDN cache) expires. This action extends their browser cache period to 4 hours.

  3. If this second user returns after 2 hours when the server cache has already expired, they will receive a fresh card from the server.

However, if both the browser cache and server cache are set to 4 hours, this second user won't receive a new card upon returning after the server cache expi…

Replies: 1 comment 1 reply

Comment options

rickstaa
Sep 19, 2023
Collaborator Author

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

Answer selected by rickstaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants