javascript - Js File Not Updated in Chrome, After I publish website.How to Deal with it? -
this question has answer here:
hello stackoverflow ppl got problem javascript file in asp mvc website.
i using jquery datepickers, have in core.js file.
when updated jquery datepicker dateformat 'dd/mm/yy', in core.js , uploaded web site on iis. users see old dateformats in chrome. (problem not exists in firefox or ie.just 1 refresh helps.)
in chrome cleaned cache , problem gone cant tell 3000 users 1 one clean cache...
any solutions?
another solution trick browsers don't listen cache expiration
make append ?v=versionumber
js url browser treat new url.
so in other words every time make changes increment version number appends , ensure browsers re-download javascript.
example:
someurl/js/jquery.js?v=3.1.1
if updates change to:
someurl/js/jquery.js?v=3.1.2
Comments
Post a Comment