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

- Patch #550488 by c960657: turn of mod_expires for all .php files.

parent 26cdaf72
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
...@@ -48,10 +48,14 @@ DirectoryIndex index.php index.html index.htm ...@@ -48,10 +48,14 @@ DirectoryIndex index.php index.html index.htm
# Cache all files for 2 weeks after access (A). # Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600 ExpiresDefault A1209600
<Files index.php> <FilesMatch \.php$>
# Caching headers for dynamically generated pages are set from PHP. # Do not allow PHP scripts to be cached unless they explicitly send cache
# headers themselves. Otherwise all scripts would have to overwrite the
# headers set by mod_expires if they want another caching behavior. This may
# fail if an error occurs early in the bootstrap process, and it may cause
# problems if a non-Drupal PHP file is installed in a subdirectory.
ExpiresActive Off ExpiresActive Off
</Files> </FilesMatch>
</IfModule> </IfModule>
# Various rewrite rules. # Various rewrite rules.
......
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