Skip to content
Snippets Groups Projects
Commit 50535ab3 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #104506 by m3vrick: better cache headers for static files.

parent f1991452
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -43,8 +43,13 @@ DirectoryIndex index.php ...@@ -43,8 +43,13 @@ DirectoryIndex index.php
php_value session.auto_start 0 php_value session.auto_start 0
</IfModule> </IfModule>
# Reduce the time dynamically generated pages are cache-able. # Requires mod_expires to be enabled.
<IfModule mod_expires.c> <IfModule mod_expires.c>
# Enable expirations.
ExpiresActive On
# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600
# Do not cache dynamically generated pages.
ExpiresByType text/html A1 ExpiresByType text/html A1
</IfModule> </IfModule>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment