Open xplosionmind opened 1 year ago
To provide more context, here is what I added to my Nginx config, in /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";
}
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.