Closed glassfishrobot closed 16 years ago
@glassfishrobot Commented Reported by danl
@glassfishrobot Commented @edburns said: Fix checked in.
@glassfishrobot Commented Was assigned to jsf-extensions-issues
@glassfishrobot Commented This issue was imported from java.net JIRA JSF_EXTENSIONS-85
@glassfishrobot Commented Marked as fixed on Friday, December 7th 2007, 8:06:11 am
Currently, browsers are caching the com_sun_faces_ajax.js file, but always generate a "If-Modified-Since" request. In order to increase performance, we would like to set an "Expires" header when resources are requested by the browser; thus, eliminating unnecessary requests.
In order for new resources (e.g., a minor release) to be loaded by the browser, without expiring or clearing the cache manually, either the file name or path must change. A simple way to achieve this is to add a version number in the path. For example:
/META-INF/jsfx0_1_4/com_sun_faces_ajax.js /META-INF/jsfx0_1_4/com_sun_faces_ajax-max.js
Not only would this help browser caching, but it would indicate what version is currently being used by the app – please see issue #80.
Environment
Operating System: All Platform: Sun
Affected Versions
[current]