Skip to content

Commit edb062c

Browse files
add no-cache headers (#133)
* add no-cache headers * Fix cache control --------- Co-authored-by: FabioRosado <hello@fabiorosado.dev>
1 parent 3946708 commit edb062c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pyscript/plugins/run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def end_headers(self):
3434
self.send_header("Cross-Origin-Opener-Policy", "same-origin")
3535
self.send_header("Cross-Origin-Embedder-Policy", "require-corp")
3636
self.send_header("Cross-Origin-Resource-Policy", "cross-origin")
37+
self.send_header("Cache-Control", "no-cache, must-revalidate")
3738
SimpleHTTPRequestHandler.end_headers(self)
3839

3940
return FolderBasedHTTPRequestHandler

0 commit comments

Comments
 (0)