Skip to content

Commit

Permalink
add no-cache headers (#133)
Browse files Browse the repository at this point in the history
* add no-cache headers

* Fix cache control

---------

Co-authored-by: FabioRosado <[email protected]>
  • Loading branch information
madhur-tandon and FabioRosado authored Feb 15, 2024
1 parent 3946708 commit edb062c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pyscript/plugins/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def end_headers(self):
self.send_header("Cross-Origin-Opener-Policy", "same-origin")
self.send_header("Cross-Origin-Embedder-Policy", "require-corp")
self.send_header("Cross-Origin-Resource-Policy", "cross-origin")
self.send_header("Cache-Control", "no-cache, must-revalidate")
SimpleHTTPRequestHandler.end_headers(self)

return FolderBasedHTTPRequestHandler
Expand Down

0 comments on commit edb062c

Please sign in to comment.