Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Add ttf and woff caching to nginx configuration
Browse files Browse the repository at this point in the history
Since we serve webfonts, they should also be cached.

Signed-off-by: Johannes Ebke <johannes.ebke.ext@siemens.com>
  • Loading branch information
Johannes Ebke committed Sep 27, 2013
1 parent f25f7ec commit 864dae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx.shinyserver.conf
@@ -1,7 +1,7 @@

root /var/www;

location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
location ~* \.(?:ico|ttf|woff|css|js|gif|jpe?g|png)$ {
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
Expand Down

0 comments on commit 864dae0

Please sign in to comment.