Feature #607
Use Last-Modified header for static resources
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
velocity
Target version:
-
Start date:
12/12/2012
Due date:
% Done:
100%
Estimated time:
Browser (if web client):
Description
As it is right now, there are no caching related headers sent to the client for static resources that are defined in the config.json. The effect of this is that browsers must request all the defined static files for a page with each page load, and never caching them locally. It would be useful if velocity could return a Last-Modified header set to the file's local modified timestamp so browsers could do conditional gets (If-Modified-Since) to save on file transfer/load times.
History
Updated by Patrick Talbot over 12 years ago
That's a very good idea indeed. I'll look into adding that for the next version.
Thanks!
Updated by Patrick Talbot over 12 years ago
- % Done changed from 0 to 100
Will be part of the next version