Logo Knowledge
  • Product Documentation
  • Insight
  • Developer Center
  • Training
  • Submit a Request
  • Product Documentation
  • Insight
  • Developer Center
  • Training
  • Submit a Request
  1. Acquia Support Knowledge Base
  2. Troubleshooting
  3. Common Problem

Varnish is not caching my site

    See more
    • Updated
    • September 25, 2020 13:02

    Issue

    Varnish is not caching my site. 

    Resolution

    Two common reasons for varnish not caching the site are - 

    1.) The max-age value has been set to 0, under the Performance section on the site at - <example-site-name>/admin/config/development/performance. If that is the case, varnish will not cache your pages, respecting the max-age setting.

    • In Drupal 8, this is under the Page cache maximum age section.
    • For Drupal 7, it is under Expiration of cached pages.

    2.) Your sites are under development, and you have shield in place. Having a basic authentication/shield in place will prevent varnish from caching the site.

    If none of the above two use cases fit your issue, please file a Support ticket with Acquia Support.

    Acquia Products

    • Acquia Cloud Platform
    • Acquia Cloud Site Factory

    Topics

    • varnish
    • cache

    External Links

    • Drupal cache settings for varnish
    • Drupal 8 Acquia Purge & cache tags invalidation
    Avatar
    Nupur Lohokare
    • September 25, 2020 13:02
    • Updated
    • Facebook
    • Twitter
    • LinkedIn

    Was this article helpful?
    0 out of 0 found this helpful

    Return to top

    Related articles

    • Using drush aliases between environments
    • Introduction to Varnish
    • Troubleshooting "file permissions deny server access" in the Apache Error logs
    • Analyzing Your Traffic
    • Troubleshooting "Advanced Certificate Manager is required to set custom cipher suites"

    Support

    Acquia Support Knowledge Base
    • Submit a Request
    • Contact Support
    • Acquia Support Guide
    • Product Documentation
    • System Status

    About Acquia

    • About Us
    • Leadership
    • Board of directors
    • Newsroom
    • Careers
    • Customers
    • Contact Us
    53 State Street, 10th Floor
    Boston, MA 02109
    United States
    Phone: 888-922-7842
    Map: Google Maps
    View other locations
    • Feeds
    • Legal
    • Security Issue?

    Copyright © 2018 Acquia Inc. All Rights Reserved. Drupal is a registered trademark of Dries Buytaert.