Skip to content
Snippets Groups Projects
Commit d16d80fb authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

Merge branch 'aurweb-static-assets' into 'master'

aurweb: serve static assets with nginx and use Cache-Control

See merge request archlinux/infrastructure!78
parents 29e66580 86852986
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,13 @@ server {
#fastcgi_no_cache $no_cache;
}
# directories for static assets
location ~ ^/(?:css|js|images)/ {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
location ~ .* {
rewrite ^/(.*)$ /index.php/$1 last;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment