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