How can I set the "Expires" header to my desired value?

Cacheonix support forum is dedicated to support requests, bug reports and feature suggestions.
spadekevin
Posts: 4
Joined: Tue Jul 03, 2018 3:03 pm

How can I set the "Expires" header to my desired value?

Postby spadekevin » Tue Jul 31, 2018 12:40 pm

Hello,

I am trying to force the browser to cache the static resources like Javascript and image files. I try to use a Servlet filter to achieve this by setting "Expires" response header when one of these resources is requested.
But, the response headers set by my Servlet filter is simply ignored and it seems the server is setting a default value for "Expires" response header.
When I test in my local machine the "Expires" header is set to 7 days ahead, but my production server sets this as only 10 minutes ahead!

How can I set the "Expires" header to my desired value?

Please help.

I didn't find the right solution from the internet.

References:
https://forum.primefaces.org/viewtopic.php?t=6462
Best Technology Ads

Thank you.

Return to “Cacheonix Support”

Who is online

Users browsing this forum: No registered users and 1 guest