mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-14 05:23:01 +00:00
make it easier to debug static files
This commit is contained in:
@@ -15,7 +15,9 @@ class CacheControlStaticFilesHandler(StaticFileHandler):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def set_extra_headers(self, path):
|
def set_extra_headers(self, path):
|
||||||
if "v" not in self.request.arguments:
|
if "v" not in self.request.arguments or self.settings.get(
|
||||||
|
"no_cache_static", False
|
||||||
|
):
|
||||||
self.add_header("Cache-Control", "no-cache")
|
self.add_header("Cache-Control", "no-cache")
|
||||||
|
|
||||||
|
|
||||||
|
@@ -19,3 +19,10 @@ c.JupyterHub.spawner_class = SimpleLocalProcessSpawner
|
|||||||
|
|
||||||
# only listen on localhost for testing
|
# only listen on localhost for testing
|
||||||
c.JupyterHub.bind_url = 'http://127.0.0.1:8000'
|
c.JupyterHub.bind_url = 'http://127.0.0.1:8000'
|
||||||
|
|
||||||
|
c.JupyterHub.tornado_settings = {
|
||||||
|
"no_cache_static": True,
|
||||||
|
}
|
||||||
|
|
||||||
|
c.JupyterHub.admin_users = {"admin"}
|
||||||
|
c.JupyterHub.allow_all = True
|
||||||
|
Reference in New Issue
Block a user