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
Post a Comment