Skip to Content.
Sympa Menu

shibboleth-dev - Re: [Shib-Dev] Last-Modified vs Etag for metadata modification checking

Subject: Shibboleth Developers

List archive

Re: [Shib-Dev] Last-Modified vs Etag for metadata modification checking


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: [Shib-Dev] Last-Modified vs Etag for metadata modification checking
  • Date: Thu, 04 Dec 2008 10:27:19 +0100
  • Openpgp: id=146B2514
  • Organization: SWITCH

Thanks Kaspar. See, I told you I wasn't an HTTP expert. ;)

Kaspar Brand wrote:
>> So, my general question is, should I be checking the Etag or the
>> Last-Modified header in order to detect changes?
>
> If the server provides an ETag header in his response, then you should
> (or MUST, as per RFC 2616, actually) use that one:
>
>> HTTP/1.1 clients:
>>
>> - If an entity tag has been provided by the origin server, MUST
>> use that entity tag in any cache-conditional request (using If-
>> Match or If-None-Match).
>
> Otherwise you should use If-Modified-Since (provided that the server's
> response had a Last-Modified field).
>
> Setting both If-Match/If-None-Match and If-Modified-Since in a request
> has an "undefined" result according to the spec.
>
> Kaspar

--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
,
http://www.switch.ch




Archive powered by MHonArc 2.6.16.

Top of Page