[#3600] - expiresAfterAccessInSecs Parameter in StaticFilesCacheControlFilter Not Allowing High Enough Values

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

In the web.xml of jasperserver I am attempting to configure the expires headers caching using the com.jaspersoft.jasperserver.war.StaticFilesCacheControlFilter filter. The parameter expiresAfterAccessInSecs has an initial default value 0f 86400 (1 day in seconds). If I set this value to 10 days (864000) and restart jasperserver and verify the http headers on static resources it seems to work fine. However if I set the parameter to 100 days (8640000) and restart jasperserver when I review the http header sent for static resources they all default back to 1 day (86400). It seems some arbitrary limit is checked and exceeded thereby causing the value to be reset to a default. 100 days for caching static resources is very standard and many web sites cache static content for up to 1 year. The max value for this parameter needs to be documented and perhaps increased to allow a larger value.

v5.5.0
amyatt's picture
2
Joined: May 6 2014 - 9:30pm
Last seen: 6 years 8 months ago
Feedback