tomcat security-constraint impact cache -
I have a problem caching my application.
When this code is added to web.xml, Tomcat:
& lt; Security-lock & gt; & Lt; Web resource collection & gt; & Lt; Web resource name & gt; HTTPSOnly & lt; / Web resource name & gt; & Lt; URL pattern & gt; / * & Lt; / URL pattern & gt; & Lt; / Web resource collection & gt; & Lt; User data-barrier & gt; & Lt; Transportation Guarantee & gt; Confidential & lt; / Transportation Guarantee & gt; & Lt; / User data-barrier & gt; & Lt; / Safety-barrier & gt; I get this response:
Cash-control personal date Tuesday, 18 February 2014 01:18:17 GMT Etag W / " 200 -1391558564593 "is expired on Thursday, 01 January 1970 00:00:00 Web server Apache-Coyote / 1.1
Without this code everything is OK: < / P>
accept-threshold bytes cache-control max-age = 604800 content-length 1496 content-type text / css Date Tuesday, 18 February 2014 01:21:26 GMT Etag W / "1496-1391558561359 "Tuesday's end, 25 February 2014 01 : 21: 27 GMT Last-Modified Wed, 05 Feb 2014 00:02:41 GMT Server Apache-Coyote / 1.1 Anyone can tell what the problem is? And why does this code change the cash-config for the privatization of my application. Thank you very much
TOMAX 7.0 JDK: 1.6
user-data-barrier
When the application requires that the data be transmitted Go to see the transmission material to prevent other entities.
For HTML responses, this will mean ensuring that the proxy / cache is not the way, from the server to the client, the cash response and any other request to the client Are there. Use this as:
Cache-control: private when you can be tempted to use "integrated" instead of "confidential" , The same tutorial shows that many Java EE servers treat these two values equally.
If your application requires caching permissions, then I suspect that you & lt; User-data-constraint & gt; web.xml code from file> element Hope it helps!
Comments
Post a Comment