suggestion: response.uncacheable() should send expires header
Philip Semanchuk <[email protected]> Thu, 19 Apr 2007 00:13:12 -0400
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
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: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.3 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, Philip ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/