mirror of
https://github.com/discourse/discourse.git
synced 2025-04-14 10:01:40 +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;
|
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>.+)$ {
|
location ~ ^/assets/(?<asset_path>.+)$ {
|
||||||
expires 1y;
|
expires 1y;
|
||||||
# asset pipeline enables this
|
# asset pipeline enables this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user