Did you get that value of "20 Feb 2009 14:00:00 Z" from Google on an
earlier request?
According to RFC 2616 you need to send back a date that Google
supplied, or the results are undefined.
Note: When handling an If-Modified-Since header field, some
servers will use an exact date comparison function, rather than a
less-than function, for deciding whether to send a 304 (Not
Modified) response. To get best results when sending an If-
Modified-Since header field for cache validation, clients are
advised to use the exact date string received in a previous Last-
Modified header field whenever possible.
Ray
On Wed, Mar 4, 2009 at 5:13 PM, Florent Georges <[email protected]> wrote:
>
> Hi,
>
> I use the Google Calendar API to retrieve an event entry. I
> try to use the If-Modified-Since header, providing the service
> with the value "20 Feb 2009 14:00:00 Z", the entry having the
> following element:
>
> <updated>2009-02-20T12:38:49.000Z</updated>
>
> Unfortunately, the entry is still returned. If I set the
> header If-None-Match instead, with the ETag of the entry, I get
> an HTTP response "304 Not Modified," as expected.
>
> What did I make wrong?
>
> Regards,
>
> --
> Florent Georges
> http://www.fgeorges.org/
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---