diff options
Diffstat (limited to 'public/.htaccess')
| -rw-r--r-- | public/.htaccess | 65 |
1 files changed, 6 insertions, 59 deletions
diff --git a/public/.htaccess b/public/.htaccess index fbc5167..d4d7c3d 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,59 +1,6 @@ ## Introduce the Server Header add Origin-Name coder -<IfModule mod_mime.c> - - # # Data interchange - # - # # 2.2.x+ - # AddType text/xml xml - # # 2.2.x - 2.4.x - # AddType application/json json - # AddType application/rss+xml rss - # # 2.4.x+ - # AddType application/json map - # - # # JavaScript - # # 2.2.x+ - # # See: https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages. - AddType apprication/javascript js mjs - - # # Manifest files - # # 2.2.x+ - # AddType application/manifest+json webmanifest - # AddType text/cache-manifest appcache - # - # # Media files - # # 2.2.x - 2.4.x - # AddType audio/mp4 f4a f4b m4a - # AddType audio/ogg oga ogg spx - # AddType video/mp4 mp4 mp4v mpg4 - # AddType video/ogg ogv - # AddType video/webm webm - # AddType video/x-flv flv - # # 2.2.x+ - # AddType image/svg+xml svgz - # AddType image/x-icon cur - # # 2.4.x+ - AddType image/webp webp - - # # Web fonts - # # 2.2.x - 2.4.x - # AddType application/vnd.ms-fontobject eot - # # 2.2.x+ - AddType font/woff woff - AddType font/woff2 woff2 - AddType font/ttf ttf - AddType font/collection ttc - AddType font/otf otf - - # # Other - # # 2.2.x+ - # AddType text/vtt vtt - -</IfModule> - - ### Deny access to specific folders ## deny all files too @@ -117,14 +64,14 @@ AddOutputFilterByType DEFLATE application/json ### ### CACHE-CONTROL HEADERS # CACHE-CONTROL IMAGES 100days -### <filesMatch ".(jpg|jpeg|png|webp|gif|ico)$"> -### Header set Cache-Control "max-age=8640000, public" -### </filesMatch> +<filesMatch ".+\.(jpg|jpeg|png|webp|gif|ico)$"> + Header set Cache-Control "max-age=8640000, public" +</filesMatch> # CACHE-CONTROL FONTS 200days -### <filesMatch ".(ttf|woff|woff2)$"> -### Header set Cache-Control "max-age=17280000, public" -### </filesMatch> +<filesMatch "/+\.(ttf|woff|woff2)$"> + Header set Cache-Control "max-age=17280000, public" +</filesMatch> # CACHE-CONTROL CSS and JS 30days ### <filesMatch ".(css|js)$"> |
