mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 12:12:26 +08:00
PERF: add some minimal caching to javascripts folder
This commit is contained in:
parent
ea63abf0f7
commit
6e70065291
|
@ -107,6 +107,13 @@ server {
|
|||
break;
|
||||
}
|
||||
|
||||
# some minimal caching here so we don't keep asking
|
||||
# longer term we should increas probably to 1y
|
||||
location ~ ^/javascripts/ {
|
||||
expires 1d;
|
||||
add_header Cache-Control public,immutable;
|
||||
}
|
||||
|
||||
location ~ ^/assets/(?<asset_path>.+)$ {
|
||||
expires 1y;
|
||||
# asset pipeline enables this
|
||||
|
|
Loading…
Reference in New Issue
Block a user