Procházet zdrojové kódy

Cache resources

master
Chris Smith před 5 roky
rodič
revize
c2b80088ce
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5
    0
      nginx.conf

+ 5
- 0
nginx.conf Zobrazit soubor

@@ -52,8 +52,13 @@ http {
52 52
             root   /usr/share/nginx/html;
53 53
             index  index.html index.htm;
54 54
 
55
+            location /res {
56
+                expires 1y;
57
+            }
58
+
55 59
             location ~ \.(png|jpe?g)$ {
56 60
                 try_files $uri$webp_suffix $uri =404;
61
+                expires 1y;
57 62
             }
58 63
         }
59 64
 

Načítá se…
Zrušit
Uložit