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?
2 Answers
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.
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.
Exactly, if the response doesn’t change, it might be okay to cache it anyway. Just be cautious about the context!