caching - Changes made to web-app/css not reloaded in browser? -
i using grails 2.2. have few css files in web-app/css folder. when make change these files , run application or deploy application changes made these files not reflected. need explicitly load file in browser , click on refresh button in browser new css file obtained. clear css files being cached preventing new files show up. there fix problem? how can force browser detect changes in css files , reload if changed?
i appreciate help! thanks!
the way workaround problem making change in html page evey time update js or css.
this ensures latest js or css loaded browser.
you can add version field after name of css or js file while including in html
<link href="/site.css?version=3" rel="stylesheet" type="text/css" />
just update version number in html every time make changes in css.
Comments
Post a Comment