Closed Jaymon closed 9 years ago
basically, the decorator should take a ttl and then set the appropriate headers: Cache-Control, Pragma, and Expires.
Cache-Control
Pragma
Expires
Likewise, there should be a nocache decorator that makes the page uncacheable:
"Cache-Control": "no-cache, no-store, must-revalidate", "Pragma": "no-cache", "Expires": "0"
I've added a nocache decorator but not a more full featured decorator that would set the cache headers to configurable values.
nocache
I added a @httpcache(ttl) at some point and never closed this issue :(
@httpcache(ttl)
basically, the decorator should take a ttl and then set the appropriate headers:
Cache-Control
,Pragma
, andExpires
.Likewise, there should be a nocache decorator that makes the page uncacheable: