There is expires epoch; line in the Nginx config location responsible for all dynamic requests where Speed Booster (Nginx built-in cache) is used. This overrides Cache-Control header sent by Drupal and forces it to be Cache-Control: no-cache, no matter what is originally generated by Drupal.

However, even if we remove that expires epoch; line, we still have $conf['cache'] = 0; forced in the global.inc file. This not only effectively disables cache_page bin, but also causes Drupal to send header like Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0, so it still breaks remote caches, like "CloudFlare Always Online" feature/service.

We should force $conf['cache'] = 1; again, and it shouldn't break anything for Redis, while it will cause Drupal to sent cache-friendly header Cache-Control: public, max-age=0 and still, it will not break Speed Booster caching, because we ignore these headers anyway with line fastcgi_ignore_headers Cache-Control Expires;

Comments

omega8cc’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.