Zope Python Script HTTP Caching

Citing the HTTP 1.1 specification, if a
response includes a Cache-Control field with the
max-age directive that directive overrides the Expires field. So, essentially, a Cache-Control
header with max-age directive should be all
that is required to properly HTTP cache your
context.REQUEST.RESPONSE.setHeader('Cache-Control', 'max-age=3600')
Posted by
Snippet Viewed 1505 times.

Share your Zope Python Script code snippets:

  • Get some recognition & a link back to your site.
  • Create your own code library.
  • Help your fellow developers, as they have helped you.


Submit | Browse

Most Recent zope python snippets

Most Viewed