Force refresh cache on js/css/html changes webapp

I need the browser to get changes instead of the cached ones after doing any javascript, css, or HTML changes. Giving scripts versions (ex: script.css?v=1.0) is not working on Firefox, and working on chrome though. What's the best way to accomplish this?

Answers


In my case I was using IIS, and I added a cache-control header as described here.


Need Your Help

Can the date command be macroized

bash shell date macros expansion

I often make snapshots of files using filename.date +%Y%m%D.tar.gz where the date is inserted in the filename, but it does get fiddly some times.

Removing many to many reference in Mongoose

node.js mongodb mongoose many-to-many nosql

One of my mongoose schemas is a many to many relationship: