Open RobertoPrevato opened 1 year ago
@netwang This feature is now available with https://pypi.org/project/blacksheep/2.0a4/
from blacksheep.server.files import DefaultFileOptions
from blacksheep.server.headers.cache import CacheControlHeaderValue
...
app.serve_files(
"app/static",
fallback_document="index.html",
default_file_options=DefaultFileOptions(
cache_control=CacheControlHeaderValue(no_cache=True, no_store=True),
),
)
🚀 Feature Request
Suggested by netwang @netwang 16:30 on gitter: