You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
response.cache_expires is a convenience method wrapping around response.cache_control.
response.cache_expires=50# seconds from nowresponse.cache_expires(seconds, **kw)
However, you can also mutate response.cache_control directly in several ways. For example, you can set it to a cache-control header string, or you can tweak properties on it directly.
response.cache_control='no-cache, must-revalidate'response.cache_control.no_cache=Trueresponse.cache_control.must_revalidate=Trueresponse.cache_control.max_age=50# seconds from now
Anyway I always need to look this up so it'd be nice if it were documented better. They also interact in interesting ways if you use both.
The text was updated successfully, but these errors were encountered:
response.cache_expires
is a convenience method wrapping aroundresponse.cache_control
.However, you can also mutate
response.cache_control
directly in several ways. For example, you can set it to a cache-control header string, or you can tweak properties on it directly.Anyway I always need to look this up so it'd be nice if it were documented better. They also interact in interesting ways if you use both.
The text was updated successfully, but these errors were encountered: