File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Cache headers in the response object having repeated attributes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Cache headers in the response object having repeated attributes" Watch "Cache headers in the response object having repeated attributes" New topic
Author

Cache headers in the response object having repeated attributes

jino george
Greenhorn

Joined: Aug 28, 2012
Posts: 1
Hi All,

I am facing some issues related to Cache header in ther response object.. In the response object the cache header attributes are getting repeated and i am not sure why it is happening and what is the impact of it.

HTTP/1.1 304 Use local copy
Server: Sun-Java-System-Web-Server/7.0
Date: Tue, 28 Aug 2012 18:26:50 GMT
Cache-control: private,max-age=1200
Cache-Control: max-age=604800
X-Powered-By: Servlet/2.5 JSP/2.1

in the above max-age attribute is getting repeated.. Could somebody guide me why it is getting repeated and which will be getting the validity.. whether max-age 1200 or max-age 604800
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cache headers in the response object having repeated attributes