Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Point72_csp-gateway /csp_gateway /server /web /static.py
| from starlette.responses import Response | |
| from starlette.staticfiles import StaticFiles | |
| from starlette.types import Scope | |
| __all__ = ("CacheControlledStaticFiles",) | |
| class CacheControlledStaticFiles(StaticFiles): | |
| async def get_response(self, path: str, scope: Scope) -> Response: | |
| response = await super().get_response(path, scope) | |
| response.headers["Cache-Control"] = "public, max-age=604800" | |
| return response | |
Xet Storage Details
- Size:
- 436 Bytes
- Xet hash:
- c5d007dd540ea14d7922b9fa2542d16d2a39daa549245f709ea98158e8472a32
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.