We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 217e434 commit 4990db0Copy full SHA for 4990db0
lets-encrypt/activate-ssl.sh
@@ -173,7 +173,15 @@ server {
173
ssl_stapling_verify on;
174
175
location / {
176
- try_files \$uri \$uri/ /index.php?\$args;
+ try_files \$uri \$uri/ /index.php?\$args;
177
+ # https://veerasundar.com/blog/2014/09/setting-expires-header-for-assets-nginx/
178
+ if ($request_uri ~* ".(ico|css|js|gif|jpe?g|png)$") {
179
+ expires 15d;
180
+ access_log off;
181
+ add_header Pragma public;
182
+ add_header Cache-Control "public";
183
+ break;
184
+ }
185
}
186
location /.well-known {
187
root /usr/share/nginx/html;
0 commit comments