springuser2014 / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

Enclose ETag value in quotes #157

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by Chad:

I ran the Chrome (version 8.0.552.231 for OSX) audit on my site and 
found that Chrome doesn't seem to think that any of the resources 
returned by wro4j are suitable for caching. In fact, it indicates that 
all of the resources are lacking an Expires date (even though it 
*does* exist, I'm wondering if it's too far in the future, or some 
other header that's causing it to think there's no expire date?). 

In order to troubleshoot the problem, I used REDbot to see what it had 
to say, and it indicates that: 

1. The etag header's syntax isn't valid (the value should be contained 
in quotes). 
2. This response is negotiated, but doesn't have an appropriate Vary 
header.

Original issue reported on code.google.com by alex.obj...@gmail.com on 31 Dec 2010 at 9:05

GoogleCodeExporter commented 9 years ago
The Etag header value is now quoted and the following header added to response:
"Vary: Accept-Encoding"

Original comment by alex.obj...@gmail.com on 3 Jan 2011 at 10:03

GoogleCodeExporter commented 9 years ago
A very good explanation of vary header can be found at this link: 
http://www.subbu.org/blog/2007/12/vary-header-for-restful-applications

Original comment by alex.obj...@gmail.com on 3 Jan 2011 at 10:04