Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Conditional GET request (eTag) for feeds not working?
First try, with eTag:
curl -H "If-None-Match: 44B7A587-43ADCF51-CD8F949F-B8753DCF-4708CD5B" -i http://www.agitprop.gr/atom/
<br />
returns and empty 200 response instead of a 304:
<code>
HTTP/1.1 200 OK
Date: Fri, 31 Mar 2006 14:55:25 GMT
Server: Apache
Expires: Fri, 31 Mar 2006 15:55:27 GMT
Last-Modified: Thu, 30 Mar 2006 07:13:50 GMT
Vary: Accept-Encoding
X-Powered-By: The blood, sweat and tears of the fine, fine TextDrive staff
Served-By: TextDrive
Content-Length: 0
Content-Type: text/html; charset=UTF-8
</code><br />
Second try, with If-Modified-Since:
curl -H "If-Modified-Since: Thu, 30 Mar 2006 07:13:50 GMT" -i http://www.agitprop.gr/atom/
<br />
returns a 304 response:
<code>
HTTP/1.1 304 Not Modified
Date: Fri, 31 Mar 2006 14:57:47 GMT
Server: Apache
Expires: Fri, 31 Mar 2006 15:57:48 GMT
Vary: Accept-Encoding
</code><br />
A combination of the above (eTag and If-Modified-Since) also returns a 304 response. Is this behaviour expected?
VC3 :: weblog :: my wishlist
Offline
#2 2006-03-31 15:20:36
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: Conditional GET request (eTag) for feeds not working?
That’s definitely not the expected behavior. That said, it’s working for me on my local TXP site, so I’m wondering if you have any Apache modules loaded which could interfere with the processing of the request?
-Kurt
kurt@kurtraschke.com
Offline
Re: Conditional GET request (eTag) for feeds not working?
I don’t know. I’m hosted on TextDrive whatsoever. Thanks for the suggestion.
Last edited by Etz Haim (2006-03-31 15:27:09)
VC3 :: weblog :: my wishlist
Offline
Re: Conditional GET request (eTag) for feeds not working?
returns and empty 200 response
Sounds familiar. I had a lot of similar fun while I was trying to get regular 304s to work (which isn’t currently working). It might be related to these bug reports:
http://bugs.php.net/bug.php?id=34537
http://issues.apache.org/bugzilla/show_bug.cgi?id=38070
Offline