summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-08-16 12:10:36 +0000
committerDries Buytaert <dries@buytaert.net>2009-08-16 12:10:36 +0000
commit3df77d6b65e1b01b740975c191fc0ef0972fe2ca (patch)
tree1f65fec0aaaa1a779a2df70270ac0f3a1af765d7 /.htaccess
parent26cdaf72f25e3c3da892f308c7bb0588d8ca134e (diff)
downloadbrdo-3df77d6b65e1b01b740975c191fc0ef0972fe2ca.tar.gz
brdo-3df77d6b65e1b01b740975c191fc0ef0972fe2ca.tar.bz2
- Patch #550488 by c960657: turn of mod_expires for all .php files.
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess10
1 files changed, 7 insertions, 3 deletions
diff --git a/.htaccess b/.htaccess
index a2bf7fb92..c0cef3949 100644
--- a/.htaccess
+++ b/.htaccess
@@ -48,10 +48,14 @@ DirectoryIndex index.php index.html index.htm
# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600
- <Files index.php>
- # Caching headers for dynamically generated pages are set from PHP.
+ <FilesMatch \.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
- </Files>
+ </FilesMatch>
</IfModule>
# Various rewrite rules.