Cache-Control: private
http://jigsaw.w3.org/HTTP/cc-private.html
The Google Proxy (and any other proxy along the line for that matter!)
shouldnt cache it.
(But it can still be cached in the users 'private' cache. Which I
persume is why you want to set an expiry at all)
> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>
>
On a side note, I confirm that App Engine caching should behave like
any regular HTTP/1.1 proxy if you mark your requests with the
appropriate headers.
--
Johan Euphrosine (proppy)
Developer Programs Engineer
Google Developer Relations
So you saying you dont mind all customers of that ISP getting the same
stale data, just dont want it for all you users.
?
You could just add a changing cache-busting fragment to the URL.
Perhaps hashed off the remote IP address. Then you will have say 10
differnt versions stored in Googles cache, and different people
(depending on their IP) will get a different version.
By the laws of probablity, each version will (or should) get cached at
different times on the frontend, so each will update on a different
cycle.
(but you will also have to be more specific with your expirely time -
not just using 00:00. eg using 24 hours from the request time. Or use
say 25 hours, so over time the exact refresh time of each 'shard'
shifts around)
> Setting the cache control to private will also mean intranets, ISPs
> and suchlike won't be caching anymore, which is a situation I would rather
> avoid.
So you saying you dont mind all customers of that ISP getting the same
stale data, just dont want it for all you users?
You could just add a changing cache-busting fragment to the URL.
Perhaps hashed off the remote IP address. Then you will have say 10
differnt versions stored in Googles cache, and different people
(depending on their IP) will get a different version.By the laws of probablity, each version will (or should) get cached at
different times on the frontend, so each will update on a different
cycle.
Use s-maxage to set a shared cache time of 1 hour, overriding the
private cache time of 24 hours.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.3