Thanks, Dawn. That’s a good explaination but doesn’t seem to jive with what I am seeing:
Here is what a response from the origin looks like:
HTTP/1.1 200 OK
Date: Tue, 23 Dec 2008 20:45:18 GMT
Server: Apache
Expires: Tue, 23 Dec 2008 23:45:27 GMT
Content-Length: 60359
Connection: close
Content-Type: text/html; charset=utf-8
Now, here is the response for the same request thru the WA:
HTTP/1.1 200 OK
Server: Apache
Content-Type: text/html; charset=utf-8
Date: Tue, 30 Dec 2008 20:49:57 GMT
Content-Length: 9929
Content-Encoding: gzip
ETag: “pvf9e3703b808734df7f09fc19af3ca4b7”
X-WAM-ORIG-CC:private, max-age=10800
Cache-Control: private
X-WAM-RC-MASQ: On
X-PvInfo: [S10201.C17445.A28661.RA0.G706F.U5315C814].[OT/html.OG/pages]
Connection: Keep-Alive
Vary: Accept-Encoding
Accept-Ranges: none
X-PVia: webacc04
Where did the Expires header go? Where is the max-age and/or s-maxage?
On that node of my policy I have it set to preserve cc headers (box is un-checked for response). I went ahead and opened a case on this, since it doesn’t seem to make sense.
Our main problem with this is we have Akamai sitting in front of WA (WA is Akamai’s origin) and when they get a “Cache-Control: private” they cache it with a default (and too long) time.
Here is the response I received from Akamai about this issue:
Your configuration is set to honor CC header however, “private” is not a value that we would honor.
Instead of Private, would it be possible for you to set your load webaccelerator devices to send the “no-store” value?
There is a note regarding the private directive that says: “This usage of the word private only controls where the response may be cached, and cannot ensure the privacy of the message content.” So basically private doesn’t allow caching of the content but it doesn’t say we cannot store it. Our server are cache servers but when content is not reused after a while it does get stored on the local disk (moved from memory to disk).
Therefore the private directive is not precise enough to ensure the content won’t be cached. Private is more directed to browsers and local proxies but doesn’t necessarily apply to our infrastructure. This is why we only honor “no-store”.
Considering how our server work, you’ll see that the no-store directive matches much more.
What makes troubleshooting even harder is that Akamai caches the “miss” with the X-PvInfo: S10201 header so all Akamai responses look like WA misses.
It seems like if we could modify the WA to send no-store on a miss, that would do the trick, but we’ll see what support comes back with.