I'm adding the headers in a reusable middleware, otherwise you can set those headers in any way that works. It's generated at the end of the request and could be another source of unintended. Spent days trying to get chromium based app to stop caching images.
Cristina Hey, hope you’re having a great weekend 💙 minitinah02
The ?nocache with time echo solved the issue.
For security reasons we do not want certain pages in our application to be cached, eve.
It tells browsers and caches that the response contains. Without a field name, the directive applies to the entire request and a shared (proxy server) cache must force a successful. But what i would like to do is to apply ?nocache=1 to every url related to the site (including the assets like style.css) so that i get the non cached version of the files. The list is just examples of different techniques, it's not for direct insertion.
It was intended as a privacy measure: