Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cache headers in the response object having repeated attributes

 
jino george
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic