https://github.com/PTK1182/learn-cache
I'm using Cache-Control headers, but they are not being applied.
I want to prevent the now value on the index from changing even after a reload.
1 messages · Page 1 of 1 (latest)
https://github.com/PTK1182/learn-cache
I'm using Cache-Control headers, but they are not being applied.
I want to prevent the now value on the index from changing even after a reload.
If you’re testing with the DevTools open ensure you don’t have disable cache checked
Also if you’re testing by reloading the tab, that cause the browser to ignore the cache
Instead open a new tab, open your DevTools, type the url and hit enter
Also the document and data request are different URL so they are different cache keys