changcheng / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

Default expires headers should be configurable #495

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The idea is to allow setting a custom expiry headers. Apparently that is not 
possible right now:

https://groups.google.com/forum/?fromgroups#!topic/wro4j/NjMNxYWalwo

Original issue reported on code.google.com by alex.obj...@gmail.com on 28 Jul 2012 at 8:39

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 29 Jul 2012 at 9:23

GoogleCodeExporter commented 9 years ago
A new method has been added to WroFilter: configureDefaultHeaders(Map) which 
allows customization of default headers (including expires headers) to set for 
each response handled by wro4j. 

Fixed in 1.4.x

Original comment by alex.obj...@gmail.com on 31 Jul 2012 at 3:34

GoogleCodeExporter commented 9 years ago
Hi Alex,

I've just checked the latest WroFilter in 1.4.x branch, but I cant find the 
method configureDefaultHeaders(Map). Was it accidentally removed? The method 
initHeaderValues() in the filter still add a hardcoded EXPIRES header of 1 year.

Thanks!

Alex

Original comment by AlexWib...@gmail.com on 14 Nov 2012 at 9:23

GoogleCodeExporter commented 9 years ago
Check the 1.6.x branch, whoch is latest dev branch.

Original comment by alex.obj...@gmail.com on 14 Nov 2012 at 9:38