|
@@ -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;
|
|
|
}
|