roles/nginx: Add expires to static files
Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
parent
81a98596e3
commit
42b893b2a7
@ -5,6 +5,11 @@
|
|||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
|
||||||
|
expires 7d;
|
||||||
|
add_header Cache-Control "must-revalidate";
|
||||||
|
}
|
||||||
|
|
||||||
# Add trailing slash to */wp-admin requests.
|
# Add trailing slash to */wp-admin requests.
|
||||||
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
|
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user