Conversation
|
Prior to this change, using the drupal preset only static resources were being cached, and they were only being cached for anonymous users. Now, public static resources will be cached by varnish for authenticated users too. Private files (e.g. /system/files/*) still won't get cached. I also added the below to the drupal preset to get caching of page responses for anonymous users working. |
|
Hi, @drasgardian, thank you for the PR. Some questions and thoughts:
|
|
Hi @PavelPrischepa static.vcl.tmpl still checks for VARNISH_CACHE_STATIC_FILES and will I don't see why caching static files for authenticated users should be a separate configuration. Requests (in a Drupal site) for static assets in the public filesystem, or in a theme or module are served directly by nginx anyway, without any PHP processing or authentication checks. So if caching of these static files is enabled for anonymous users, there shouldn't be any reason not to also cache for authenticated. |
cache public static files from drupal
83ada05 to
eed535a
Compare
|
@PavelPrischepa |
Allows a drupal installation to:
#27