From: Philip Semanchuk <philip@se...> - 2007-04-19 04:13:22
uncacheable() sends a Cache-Control header for HTTP 1.1 clients and a
Pragma header for HTTP 1.0 clients. This is correct, but the HTTP 1.1
spec advises sending an Expires header "whose value is less than or
equal to the Date value" to indicate that HTTP 1.0 clients shouldn't
cache the response. Reference:
Sending an Expires header makes sense, wouldn't hurt anything and might
make uncacheable() more robust. All that's required in code is to call
self.expires() in response.uncacheable().
Just a thought,
Get latest updates about Open Source Projects, Conferences and News.