We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The default cache-control is set to max-age=604800 (one week). How can I change this? (Apart from editing file.py)
Ideally, my html pages would have a max-age=0, while images, css, and javascript would have a max-age= a month or something.
Any ideas how this could be done? Is there a way to specify this on each page? Or in some sort of plugin?
The text was updated successfully, but these errors were encountered:
+1
It seems that one can create a plugin like that
def preDeployFile(file): cache_expiration = 60 * 60 # One hour if file.path.endswith('.html'): file.cache_control = cache_expiration
Sorry, something went wrong.
No branches or pull requests
The default cache-control is set to max-age=604800 (one week). How can I change this? (Apart from editing file.py)
Ideally, my html pages would have a max-age=0, while images, css, and javascript would have a max-age= a month or something.
Any ideas how this could be done? Is there a way to specify this on each page? Or in some sort of plugin?
The text was updated successfully, but these errors were encountered: