Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
If you do it moce than once in a month, automatize it... Write your own responding voice xD
-
Bikonja23838yI was just implementing a new single page module for our app at work and for file includes (both JS and CSS) I decided to add a ?v=hashedVersion to them where hashed version is tge hash (trimmed) of the assembly version and, just in case, the build date (the build date makes the version redundant, but I felt dirty not using the version :))
So every time a build happens, those files will be forced to update on clients browsers.
I still have dev problems, though...
First is that I usually don't need a rebuild for changes on those files (I am OK with this as I always have dev tools open with the no cache option).
The second is that it looks like IIS decides to cache the files if you request them too much or something because even going to an "unused" browser gets the stale file and iisreset helps... -
davide24246yJust add a timestamp to the resource you are calling and you're just fine. ?t=1538479596
Related Rants
Client: "This feature doesn't work! I thought you said it was done?!"
Me: "Please press CTRL+F5 and try again..."
Client: "Okay, great, works now."
A conversation I seem to have on a very regular basis.
undefined
client
web development
refresh
cache