Even if the global $conf['cache'] is OFF, the Varnish will cache the page because the necessary headers to not cache the page are not set.

The issue is also raised here: https://www.drupal.org/node/1427834

CommentFileSizeAuthor
#1 cache_headers_2490186_1.patch687 bytesvasi1186
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vasi1186’s picture

FileSize
687 bytes

Attached a patch that should fix the issue.

Fabianx’s picture

Status: Active » Reviewed & tested by the community

RTBC, looks good for 6.x

  • MiSc committed c2f0902 on 6.x-1.x authored by vasi1186
    Issue #2490186 by vasi1186: Varnish caches pages even if the global...
MiSc’s picture

Thanks, Committed to latest dev and will be in release 6.x-1.3

MiSc’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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