Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
86852986
Commit
86852986
authored
Sep 04, 2020
by
Jakub Klinkovský
Browse files
aurweb: serve static assets with nginx and use Cache-Control
parent
29e66580
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/aurweb/templates/nginx.d.conf.j2
View file @
86852986
...
...
@@ -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;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment