Die Cookies werden kaum das Problem sein, schliesslich führt der Aufruf des Feed-URIs gar nicht zum Setzen von Cookies. Allerdings wird eine leere Seite mit Statuscode 200 zurückgeliefert, wenn ein passender If-Modified-Since- oder If-None-Match-Header gesetzt ist, die Ressource also aus dem Cache geladen werden soll.
Beispiel mit nicht zum ETag des aktuellen Feeds passenden If-None-Match-Header:
Code:
$ curl -v 'http://blog.mybodystyle.ch/?feed=rss2' -H 'If-None-Match: "a3f336e397c5794508032c7e11740942"'
* About to connect() to blog.mybodystyle.ch port 80 (#0)
* Trying 92.43.216.137... connected
* Connected to blog.mybodystyle.ch (92.43.216.137) port 80 (#0)
> GET /?feed=rss2 HTTP/1.1
> User-Agent: curl/7.21.2 (x86_64-apple-darwin10.6.0) libcurl/7.21.2 OpenSSL/1.0.0c zlib/1.2.5 libidn/1.19
> Host: blog.mybodystyle.ch
> Accept: */*
> If-None-Match: "a3f336e397c5794508032c7e11740942"
>
< HTTP/1.1 200 OK
< Content-Type: text/xml; charset=UTF-8
< Last-Modified: Mon, 02 Apr 2012 13:51:18 GMT
< ETag: "a3f336e397c5794508032c7e11740927"
< Server: Microsoft-IIS/7.5
< X-Pingback: http://blog.mybodystyle.ch/xmlrpc.php
< X-Powered-By: ASP.NET
< Date: Tue, 03 Apr 2012 15:39:35 GMT
< Content-Length: 32113
[...]
Beispiel mit passendem If-None-Match-Header:
Code:
$ curl -v 'http://blog.mybodystyle.ch/?feed=rss2' -H 'If-None-Match: "a3f336e397c5794508032c7e11740927"'
* About to connect() to blog.mybodystyle.ch port 80 (#0)
* Trying 92.43.216.137... connected
* Connected to blog.mybodystyle.ch (92.43.216.137) port 80 (#0)
> GET /?feed=rss2 HTTP/1.1
> User-Agent: curl/7.21.2
> Host: blog.mybodystyle.ch
> Accept: */*
> If-None-Match: "a3f336e397c5794508032c7e11740927"
>
< HTTP/1.1 200 OK
< Last-Modified: Mon, 02 Apr 2012 13:51:18 GMT
< ETag: "a3f336e397c5794508032c7e11740927"
< Server: Microsoft-IIS/7.5
< X-Pingback: http://blog.mybodystyle.ch/xmlrpc.php
< X-Powered-By: ASP.NET
< Date: Tue, 03 Apr 2012 15:38:02 GMT
< Content-Length: 0
<
* Connection #0 to host blog.mybodystyle.ch left intact
* Closing connection #0
Mutmasslich erkennt der Webserver korrekt, dass die Kopie im Cache aktuell ist, liefert aber anstelle des passenden Statuscodes 304 (Not Modified) ein leeres Dokument mit Statuscode 200 (OK) zurück. Mangels Erfahrung mit IIS kann ich dazu jedoch keine spezifischeren Tipps geben.
US-Energieversorger gehackt, Iran...
Gestern, 21:23 in gulli:news