This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Cache headers in the response object having repeated attributes
 
It's not a secret anymore!