Hello,
we noticed that HTTP 302 responses from wayback are cached, which is contradicts the
HTTP protocol 2616:
10.3.3 302 Found
The requested resource resides temporarily under a different URI.
Since the redirection might be altered on occasion, the client SHOULD
continue to use the Request-URI for future requests. This response
is only cacheable if indicated by a Cache-Control or Expires header
field.
perhaps there is a response from the IA server to squid that allows the caching and we're not seeing it?
As you can see from example below, the timegate responses (302s) are *too* cachable.
curl -I -H Accept-Datetime:"Wed, 29 Sep 2011 12:00:04 GMT" http://api.wayback.archive.org/memento/timegate/http://www.beautifulkerala.com/
HTTP/1.1 302 Moved Temporarily
Server: Tengine/1.3.0
Date: Tue, 05 Feb 2013 18:48:18 GMT
Content-Type: text/html
Connection: keep-alive
set-cookie: wayback_server=40; Domain=archive.org; Path=/; Expires=Thu, 07-Mar-13 18:48:18 GMT;
Vary: negotiate,accept-datetime
Link: <http://api.wayback.archive.org/list/timebundle/http://www.beautifulkerala.com/>;rel="timebundle", <http://www.beautifulkerala.com/>;rel="original",<http://api.wayback.archive.org/memento/20110925033809/http://www.beautifulkerala.com/>;rel="memento";datetime="Sun, 25 Sep 2011 03:38:09 GMT", <http://api.wayback.archive.org/memento/20120721041735/http://www.beautifulkerala.com/>;rel="last memento"; datetime="Sat, 21 Jul 2012 04:17:35 GMT", <http://api.wayback.archive.org/memento/20030425003640/http://www.beautifulkerala.com/>;rel="first memento"; datetime="Fri, 25 Apr 2003 00:36:40 GMT", <http://api.wayback.archive.org/memento/20110901203020/http://www.beautifulkerala.com/>;rel="prev memento"; datetime="Thu, 01 Sep 2011 20:30:20 GMT", <http://api.wayback.archive.org/memento/20111025114541/http://www.beautifulkerala.com/>;rel="next "; datetime="Tue, 25 Oct 2011 11:45:41 GMT" , <http://api.wayback.archive.org/list/timemap/link/http://www.beautifulkerala.com/>;rel="timemap"; type="application/link-format"
Location: http://api.wayback.archive.org/memento/20110925033809/http://www.beautifulkerala.com/
Content-Length: 0
X-Page-Cache: MISS
[ludab@megalodon ~]$ curl -I -H Accept-Datetime:"Wed, 29 Sep 2011 12:00:04 GMT" http://api.wayback.archive.org/memento/timegate/http://www.beautifulkerala.com/
HTTP/1.1 302 Moved Temporarily
Server: Tengine/1.3.0
Date: Tue, 05 Feb 2013 18:48:21 GMT
Content-Type: text/html
Connection: keep-alive
set-cookie: wayback_server=40; Domain=archive.org; Path=/; Expires=Thu, 07-Mar-13 18:48:21 GMT;
Vary: negotiate,accept-datetime
Link: <http://api.wayback.archive.org/list/timebundle/http://www.beautifulkerala.com/>;rel="timebundle", <http://www.beautifulkerala.com/>;rel="original",<http://api.wayback.archive.org/memento/20110925033809/http://www.beautifulkerala.com/>;rel="memento";datetime="Sun, 25 Sep 2011 03:38:09 GMT", <http://api.wayback.archive.org/memento/20120721041735/http://www.beautifulkerala.com/>;rel="last memento"; datetime="Sat, 21 Jul 2012 04:17:35 GMT", <http://api.wayback.archive.org/memento/20030425003640/http://www.beautifulkerala.com/>;rel="first memento"; datetime="Fri, 25 Apr 2003 00:36:40 GMT", <http://api.wayback.archive.org/memento/20110901203020/http://www.beautifulkerala.com/>;rel="prev memento"; datetime="Thu, 01 Sep 2011 20:30:20 GMT", <http://api.wayback.archive.org/memento/20111025114541/http://www.beautifulkerala.com/>;rel="next "; datetime="Tue, 25 Oct 2011 11:45:41 GMT" , <http://api.wayback.archive.org/list/timemap/link/http://www.beautifulkerala.com/>;rel="timemap"; type="application/link-format"
Location: http://api.wayback.archive.org/memento/20110925033809/http://www.beautifulkerala.com/
Content-Length: 0
X-Page-Cache: HIT
[ludab@megalodon ~]$ curl -I -H Accept-Datetime:"Wed, 29 Sep 2012 12:00:04 GMT" http://api.wayback.archive.org/memento/timegate/http://www.beautifulkerala.com/
HTTP/1.1 302 Moved Temporarily
Server: Tengine/1.3.0
Date: Tue, 05 Feb 2013 18:48:36 GMT
Content-Type: text/html
Connection: keep-alive
set-cookie: wayback_server=40; Domain=archive.org; Path=/; Expires=Thu, 07-Mar-13 18:48:36 GMT;
Vary: negotiate,accept-datetime
Link: <http://api.wayback.archive.org/list/timebundle/http://www.beautifulkerala.com/>;rel="timebundle", <http://www.beautifulkerala.com/>;rel="original",<http://api.wayback.archive.org/memento/20110925033809/http://www.beautifulkerala.com/>;rel="memento";datetime="Sun, 25 Sep 2011 03:38:09 GMT", <http://api.wayback.archive.org/memento/20120721041735/http://www.beautifulkerala.com/>;rel="last memento"; datetime="Sat, 21 Jul 2012 04:17:35 GMT", <http://api.wayback.archive.org/memento/20030425003640/http://www.beautifulkerala.com/>;rel="first memento"; datetime="Fri, 25 Apr 2003 00:36:40 GMT", <http://api.wayback.archive.org/memento/20110901203020/http://www.beautifulkerala.com/>;rel="prev memento"; datetime="Thu, 01 Sep 2011 20:30:20 GMT", <http://api.wayback.archive.org/memento/20111025114541/http://www.beautifulkerala.com/>;rel="next "; datetime="Tue, 25 Oct 2011 11:45:41 GMT" , <http://api.wayback.archive.org/list/timemap/link/http://www.beautifulkerala.com/>;rel="timemap"; type="application/link-format"
Location: http://api.wayback.archive.org/memento/20110925033809/http://www.beautifulkerala.com/
Content-Length: 0
X-Page-Cache: HIT
|