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
I am getting crazy trying to manually configure Nginx to cache static resources…
It would be great if such configuration could be performed right within YunoHost, without needing to meddle with the Nginx file.
The text was updated successfully, but these errors were encountered:
To provide more context, here is what I added to my Nginx config, in /etc/nginx/conf.d/tommi.space.d/my_webapp.conf:
/etc/nginx/conf.d/tommi.space.d/my_webapp.conf
# Cache-Control headers for static assets location ~* .(?:webp|jpg|png|svg|aiff|jxl|woff|woff2|wav|mp3|m4a|mov|aac)$ { expires 1y; add_header Cache-Control "public"; } location ~* .(?:js|json)$ { expires 4w; add_header Cache-Control "public"; } location ~* .(?:css)$ { expires 1w; add_header Cache-Control "public"; }
Sorry, something went wrong.
No branches or pull requests
I am getting crazy trying to manually configure Nginx to cache static resources…
It would be great if such configuration could be performed right within YunoHost, without needing to meddle with the Nginx file.
The text was updated successfully, but these errors were encountered: