Last post Dec 28, 2017 05:32 PM by markfitzme
Dec 28, 2017 05:05 PM|Moodhi|LINK
Whenever I make a change (e.g. CSS changes or similar) and copy the changes to the web server, changes don't show up on my mobile phone!! I then have to delete history on my phone to be able to see the changes. Obviously this is because the mobile phone
uses the cache version of the site which has to be deleted to see new changes.
But when the site goes live surely I am NOT going be able to ask all users to first delete the history on their phone, so what is the correct solution please?
Dec 28, 2017 05:21 PM|ryanbesko|LINK
Add a version number to the file name in the form of a query string, such as "style.css?v=1.0.1"
Dec 28, 2017 05:32 PM|markfitzme|LINK
You can also use bundling and minifcation. If the web.config has debug="true", you get the individual files for the bundles to help with testing. When debug="false" you get a bundle with a unique id appended. Each time you publish it changes the unique id
and then the browser will update it's cache.