caching of javascript files in java webapplcaition -


i using below cache control lines in jsp

response.setheader("pragma", "no-cache"); response.setheader("cache-control", "no-cache, no-store, must-revalidate"); response.setdateheader("expires", 0); 

but still javascript files getting cached disk. prevents caching of jsp or js files? there other way avoid caching of javascript files disk? please me out of you

it disables cache jsp page, because javascript/images loaded separate http requests (that not have headers you're setting). need web server's config. option adding ?version=x javascripts' url (x being timestamp if want prevent caching or source control revision number if want users latest production files).


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -