MCPcopy Create free account
hub / github.com/hunvreus/devpush / CachedStaticFiles

Class CachedStaticFiles

app/main.py:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25
26class CachedStaticFiles(StaticFiles):
27 async def get_response(self, path: str, scope) -> Response:
28 response = await super().get_response(path, scope)
29 response.headers["Cache-Control"] = "public, max-age=31536000, immutable"
30 return response
31
32
33log_level = getattr(logging, settings.log_level.upper(), logging.INFO)

Callers 1

main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected