MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / disable_cache

Method disable_cache

src/ext/sockjs/tornado/basehandler.py:62–64  ·  view source on GitHub ↗

Disable client-side cache for the current request

(self)

Source from the content-addressed store, hash-verified

60 self.set_header('access-control-max-age', CACHE_TIME)
61
62 def disable_cache(self):
63 """Disable client-side cache for the current request"""
64 self.set_header('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0')
65
66 def handle_session_cookie(self):
67 """Handle JSESSIONID cookie logic"""

Callers 8

getMethod · 0.80
postMethod · 0.80
postMethod · 0.80
getMethod · 0.80
getMethod · 0.80
postMethod · 0.80
getMethod · 0.80
postMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected