Browse Source

修改伪静态规则

tushan 7 months ago
parent
commit
79a6c155cc
1 changed files with 2 additions and 6 deletions
  1. 2 6
      docker/default.conf

+ 2 - 6
docker/default.conf

@@ -13,12 +13,8 @@ server {
             fastcgi_index index.php;
             include fastcgi.conf;
     }
-     # 对静态资源添加缓存
-    location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff|woff2|ttf|eot|otf|mp4|webp)$ {
-            expires 30d;
-            add_header Cache-Control "public, no-transform";
-    }
-	location ~^/ {
+
+    location ~^/ {
     	if (!-e $request_filename){
     		rewrite  ^(.*)$  /index.php?s=$1  last;
     	}