Can I Force a Response to Cache Despite No-Store Headers?
Asked by
route.via.hill
I'm trying to cache a response from a web server that has a `Cache-control: no-store` header set. Is there a way for me, as a user, to override this and force the response to be cached?
Answers
Itโs important to consider the purpose of those headers. Usually, if a server specifies `no-store`, itโs letting you know that the response shouldnโt be cached because it might change frequently. You can technically ignore that if you want, but you should think about the potential implications of caching information thatโs meant to be dynamic.
Reply to this answer
One option could be to create a web browser extension that lets you modify the headers of the responses you receive. I've seen something like this done using tools such as Requestly. You can tweak the `Cache-control` header to allow caching if needed.
Reply to this answer
Add your answer
Answers are reviewed before publication.
!7 more attempts: Exactly, if the response doesnโt change, it might be okay to cache it anyway. Just be cautious about the context!