Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1283 (closed defect: invalid)

Opened 12 years ago

Last modified 12 years ago

[PATCH] adding HTTP1.1 cache control to TG

Reported by: faide Owned by: anonymous
Priority: normal Milestone: 1.5
Component: CherryPy Version:
Severity: normal Keywords: CP3


Here is a patch that permits to use new args in the expose() method to specify either:

Cache-Control: no-cache Cache-Control: no-store Cache-Control: max-age=XXX, must-revalidate

Any comments will be welcome I am sure many things can be made prettiers cleaner :)


cache_control_patch.diff Download (7.5 KB) - added by faide 12 years ago.
the patch against 1.1 branch

Change History

Changed 12 years ago by faide

the patch against 1.1 branch

comment:1 Changed 12 years ago by faide

I made this patch against revision 2549 in branch 1.1 please tell me if I should/can make it against something else.

comment:2 Changed 12 years ago by jorge.vargas

  • Keywords CP3 added
  • Version 1.0 deleted
  • Component changed from TurboGears to CherryPy

if I remember correctly CP 2.x is not fully http1.1 compliant I did a quick search and it seems CP3 is now  http://www.cherrypy.org/wiki/WhatsNewIn30#WSGIserver so I guess this depends on that.

is that the 1.0 branch? or trunk? please make all patches against trunk for new features, also check out  http://docs.turbogears.org/patching_guidelines

comment:3 Changed 12 years ago by jorge.vargas

  • Status changed from new to closed
  • Resolution set to invalid
Note: See TracTickets for help on using tickets.