Преглед изворни кода

Add cache-control: no-cache to nginx config

Paul Szymanski пре 4 година
родитељ
комит
ff2d146078
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      nginx/default.conf

+ 4 - 0
nginx/default.conf

@@ -5,6 +5,8 @@ server {
     #charset koi8-r;
     #access_log  /var/log/nginx/host.access.log  main;
 
+    expires epoch;
+
     location / {
         root   /usr/share/nginx/html;
         index  index.html index.htm;
@@ -42,6 +44,8 @@ server {
     #charset koi8-r;
     #access_log  /var/log/nginx/host.access.log  main;
 
+    expires epoch;
+
     location / {
         root   /usr/share/nginx/html;
         index  index.html index.htm;