From d69b6a9897d40b9a8b72b6646c98dca262f6f009 Mon Sep 17 00:00:00 2001 From: mlncn Date: Mon, 5 Apr 2021 16:55:16 -0400 Subject: [PATCH] Commit updated .htaccess from Drupal scaffolding --- web/.htaccess | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/web/.htaccess b/web/.htaccess index 9a73a3d..6f9123d 100644 --- a/web/.htaccess +++ b/web/.htaccess @@ -27,16 +27,9 @@ AddEncoding gzip svgz # Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be # changed at runtime. -# PHP 5, Apache 1 and 2. - +# PHP 7, Apache 1 and 2. + php_value assert.active 0 - php_flag session.auto_start off - php_value mbstring.http_input pass - php_value mbstring.http_output pass - php_flag mbstring.encoding_translation off - # PHP 5.6 has deprecated $HTTP_RAW_POST_DATA and produces warnings if this is - # not set. - php_value always_populate_raw_post_data -1 # Requires mod_expires to be enabled. @@ -167,9 +160,9 @@ AddEncoding gzip svgz RewriteCond %{REQUEST_FILENAME}\.gz -s RewriteRule ^(.*)\.js $1\.js\.gz [QSA] - # Serve correct content types, and prevent mod_deflate double gzip. - RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1] - RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1] + # Serve correct content types, and prevent double compression. + RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1,E=no-brotli:1] + RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1,E=no-brotli:1] # Serve correct encoding type.