openwayback
openwayback copied to clipboard
providing Link header with rel="original" for memento 404 response
Hi,
for memento clients would be helpful if openwayback will provide Link header with rel= original for no memento found (HTTP code 404) case.
Examples:
current openwayback behavior:
curl -I http://www.webarchive.org.uk:80/wayback/archive/https://bitbucket.org/azaroth42/linkheaderparser/src/c2321bf3349b/parse_link.js
HTTP/1.1 404 Not Found
Date: Tue, 06 Sep 2016 20:53:51 GMT
Server: Apache
Set-Cookie: JSESSIONID=14573AA4F47D439F4A92B783691B41B0; Path=/wayback
Content-Type: text/html;charset=utf-8
Content-Language: en
desirable behavior (as archive Today) curl -I http://archive.is/20160903042819/https://bitbucket.org/azaroth42/linkheaderparser/src/c2321bf3349b/parse_link.js HTTP/1.1 404 Not Found Date: Tue, 06 Sep 2016 21:13:11 GMT Expires: Tue, 06 Sep 2016 21:15:11 GMT Link: https://bitbucket.org/azaroth42/linkheaderparser/src/c2321bf3349b/parse_link.js; rel="original" Content-Type: text/html;charset=utf-8 Vary: Accept-Language Server: nginx/1.9.2 Connection: keep-alive