summaryrefslogtreecommitdiff
path: root/sites/default
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-24 08:16:56 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-24 08:16:56 +0000
commite99838fbf488d9bca18f56e7ea6aee32d563ab68 (patch)
treedad6b05b6f1f47cedaec7341efcf9afed9f9b764 /sites/default
parentaddaf21247113e95fffa53b1642fa779a57fd99c (diff)
downloadbrdo-e99838fbf488d9bca18f56e7ea6aee32d563ab68.tar.gz
brdo-e99838fbf488d9bca18f56e7ea6aee32d563ab68.tar.bz2
- Patch #147310 by c960657: added tests for private files, fixed a problem with private files and minor improvements.
Diffstat (limited to 'sites/default')
-rw-r--r--sites/default/default.settings.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php
index a5e0299c9..492ed0fa3 100644
--- a/sites/default/default.settings.php
+++ b/sites/default/default.settings.php
@@ -276,6 +276,25 @@ $conf = array(
);
/**
+ * Page caching:
+ *
+ * By default, Drupal sends a "Vary: Cookie" HTTP header for anonymous page
+ * views. This tells a HTTP proxy that it may return a page from its local
+ * cache without contacting the web server, if the user sends the same Cookie
+ * header as the user who originally requested the cached page. Without "Vary:
+ * Cookie", authenticated users would also be served the anonymous page from
+ * the cache. If the site has mostly anonymous users except a few known
+ * editors/administrators, the Vary header can be omitted. This allows for
+ * better caching in HTTP proxies (including reverse proxies), i.e. even if
+ * clients send different cookies, they still get content served from the cache
+ * if aggressive caching is enabled and the minimum cache time is non-zero.
+ * However, authenticated users should access the site directly (i.e. not use an
+ * HTTP proxy, and bypass the reverse proxy if one is used) in order to avoid
+ * getting cached pages from the proxy.
+ */
+# $conf['omit_vary_cookie'] = TRUE;
+
+/**
* String overrides:
*
* To override specific strings on your site with or without enabling locale