eclipse-ee4j / mojarra-jsf-extensions

Other
1 stars 3 forks source link

Version needed to refresh "Expires" timestamp #85

Closed glassfishrobot closed 16 years ago

glassfishrobot commented 16 years ago

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]

glassfishrobot commented 5 years ago
glassfishrobot commented 16 years ago

@glassfishrobot Commented Reported by danl

glassfishrobot commented 16 years ago

@glassfishrobot Commented @edburns said: Fix checked in.

glassfishrobot commented 16 years ago

@glassfishrobot Commented Was assigned to jsf-extensions-issues

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JSF_EXTENSIONS-85

glassfishrobot commented 16 years ago

@glassfishrobot Commented Marked as fixed on Friday, December 7th 2007, 8:06:11 am