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

Method get_response

app/main.py:27–30  ·  view source on GitHub ↗
(self, path: str, scope)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected