Spent days trying to get Chromium based app to stop caching images. The ?nocache with time echo solved the issue. Thank you!
Otra forma de evitar el cache de por ejemplo tu css o js , sería modificando el .htaccess de tu apache, esto para evitar que se aloje en cache o limitar el tiempo de vida, esto te ayudaría para que cada menor tiempo se descarguen tus js y css status code = 200 y no 304 que es el que recibe cuando el recurso ya esta en cache.
Net 4 and C#. I would need set send to Browser Cache-Control (Cache-Control: no-cache) in the HTTP Response header for a Web Form page. Any idea how to do it? Thanks for your time.
This Stack Overflow page explains how to set HTTP headers for cache control in web development, including examples and best practices.
Apparently someone has discovered that using SetCacheability with NoCache also disables the ASP.NET output cache (server-side cache). They suggest to use the ServerAndNoCache option instead.
The best way is to tell apache/ (web server) to tell browser not allow caching of that file, if you don't have controll over that server, you could avoid cache by alter the parameters send to it, just add some numbers behind ?, for exemple the time when you created the link, this makes each url diferent, so the browser going to ignore the cache, but all links to the same file, as long as the ...
If you look at the PHP doc help for function session_cache_limiter (), you will see that if the cache_limiter parameter is set to private or nocache the Expires HTTP header is set to a const date (Thu, 19 Nov 1981 08:52:00 GMT).
But I also read that this doesn't work in some versions of IE. Are there any set of <meta> tags that will turn off cache in all browsers?
In test.js I changed a Javascript function, but my browser is caching this file. How to disable cache for script src?