-
1. Re: Wildfly adds Cache-Control header.
ctomc Mar 13, 2015 7:21 AM (in response to peter.ivarsson)version of WildFly?
-
2. Re: Wildfly adds Cache-Control header.
peter.ivarsson Mar 13, 2015 7:55 AM (in response to ctomc)I use Wildfly version wildfly-8.2.0
-
3. Re: Wildfly adds Cache-Control header.
kinkoazc Nov 10, 2015 5:47 AM (in response to peter.ivarsson)Hi! I'm also experiencing this problem("Cache-Control" header appearing twice: first with "no-cache, no-store, must-revalidate", second with my input) when setting a "Cache-Control" header using filters(I'm using undertow), inside the standalone.xml file(something on the lines of https://developer.jboss.org/thread/251508?start=0&tstart=0 ).
-
4. Re: Wildfly adds Cache-Control header.
varkon May 25, 2016 9:51 AM (in response to peter.ivarsson)Hello, I've got the same issue here. Did anybody find any more information?
-
5. Re: Wildfly adds Cache-Control header.
paulkmoore Jun 27, 2016 6:24 AM (in response to peter.ivarsson)For secure resources Undertow adds a Cache-Control and Pragma header automatically, to prevent proxies caching secure content.
You can change the default behaviour by setting the "disable-caching-for-secured-pages" to false in the Undertow subsystem configuration.
For example, in standalone.xml you add an attribute to the default servlet configuration as follows:
<servlet-container name="default" disable-caching-for-secured-pages="false">
-
6. Re: Wildfly adds Cache-Control header.
varkon Jun 27, 2016 6:46 AM (in response to paulkmoore)Thank you, will give it a try.
-
7. Re: Wildfly adds Cache-Control header.
vanduc1102 Jul 4, 2016 5:40 AM (in response to paulkmoore)