From 16b86aa80909b30beea8b75c93eeb9118ff2d732 Mon Sep 17 00:00:00 2001 From: Stefan Wieczorek Date: Thu, 6 Oct 2022 14:10:41 +0200 Subject: [PATCH] . --- v2-varnish/CakePHP/CakePHP 4 | 6 ------ v2-varnish/CodeIgniter/CodeIgniter 4 | 6 ------ v2-varnish/Generic/Generic | 6 ------ v2-varnish/Slim/Slim 4 | 6 ------ v2-varnish/Symfony/Symfony 5 | 6 ------ v2-varnish/Symfony/Symfony 6 | 6 ------ v2-varnish/Yii/Yii 2 | 6 ------ 7 files changed, 42 deletions(-) diff --git a/v2-varnish/CakePHP/CakePHP 4 b/v2-varnish/CakePHP/CakePHP 4 index 7dc533b..abe60e3 100755 --- a/v2-varnish/CakePHP/CakePHP 4 +++ b/v2-varnish/CakePHP/CakePHP 4 @@ -21,12 +21,6 @@ server { fastcgi_param PHP_VALUE "{{php_settings}}"; } - location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map)$ { - add_header Access-Control-Allow-Origin "*"; - expires max; - access_log off; - } - if (-f $request_filename) { break; } diff --git a/v2-varnish/CodeIgniter/CodeIgniter 4 b/v2-varnish/CodeIgniter/CodeIgniter 4 index afa8693..e26932a 100755 --- a/v2-varnish/CodeIgniter/CodeIgniter 4 +++ b/v2-varnish/CodeIgniter/CodeIgniter 4 @@ -21,12 +21,6 @@ server { fastcgi_param PHP_VALUE "{{php_settings}}"; } - location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map)$ { - add_header Access-Control-Allow-Origin "*"; - expires max; - access_log off; - } - if (-f $request_filename) { break; } diff --git a/v2-varnish/Generic/Generic b/v2-varnish/Generic/Generic index f8eab8a..9d09f80 100644 --- a/v2-varnish/Generic/Generic +++ b/v2-varnish/Generic/Generic @@ -21,12 +21,6 @@ server { fastcgi_param PHP_VALUE "{{php_settings}}"; } - location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map)$ { - add_header Access-Control-Allow-Origin "*"; - expires max; - access_log off; - } - if (-f $request_filename) { break; } diff --git a/v2-varnish/Slim/Slim 4 b/v2-varnish/Slim/Slim 4 index 4c044e3..d034926 100755 --- a/v2-varnish/Slim/Slim 4 +++ b/v2-varnish/Slim/Slim 4 @@ -21,12 +21,6 @@ server { fastcgi_param PHP_VALUE "{{php_settings}}"; } - location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map)$ { - add_header Access-Control-Allow-Origin "*"; - expires max; - access_log off; - } - if (-f $request_filename) { break; } diff --git a/v2-varnish/Symfony/Symfony 5 b/v2-varnish/Symfony/Symfony 5 index afa8693..e26932a 100755 --- a/v2-varnish/Symfony/Symfony 5 +++ b/v2-varnish/Symfony/Symfony 5 @@ -21,12 +21,6 @@ server { fastcgi_param PHP_VALUE "{{php_settings}}"; } - location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map)$ { - add_header Access-Control-Allow-Origin "*"; - expires max; - access_log off; - } - if (-f $request_filename) { break; } diff --git a/v2-varnish/Symfony/Symfony 6 b/v2-varnish/Symfony/Symfony 6 index afa8693..e26932a 100755 --- a/v2-varnish/Symfony/Symfony 6 +++ b/v2-varnish/Symfony/Symfony 6 @@ -21,12 +21,6 @@ server { fastcgi_param PHP_VALUE "{{php_settings}}"; } - location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map)$ { - add_header Access-Control-Allow-Origin "*"; - expires max; - access_log off; - } - if (-f $request_filename) { break; } diff --git a/v2-varnish/Yii/Yii 2 b/v2-varnish/Yii/Yii 2 index edbf239..9e11e08 100755 --- a/v2-varnish/Yii/Yii 2 +++ b/v2-varnish/Yii/Yii 2 @@ -21,12 +21,6 @@ server { fastcgi_param PHP_VALUE "{{php_settings}}"; } - location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map)$ { - add_header Access-Control-Allow-Origin "*"; - expires max; - access_log off; - } - if (-f $request_filename) { break; }