I serve dynamically generated recent.rss via python's flank and, of course, this way it always goes through 200 OK . I was about to fix this by setting the Expires header for a week to the future and checking if the If-Modified-Since browser was sent.
If this is the case (after comparing the dates), I would just do return nothing, 304 instead of return response , but according to Firebug and request.environ my browser just does not send If-Modified-Since for this resource.
I know that I can just save the data to a file and serve it as a real static file using a web server, but I might need static files through WSGI, and even if I didnβt want to know why this does not work.
Thanks for any help.
source share