Title: Varnish not caching
Last modified: May 24, 2017

---

# Varnish not caching

 *  Resolved [ttomasini](https://wordpress.org/support/users/ttomasini/)
 * (@ttomasini)
 * [9 years ago](https://wordpress.org/support/topic/varnish-not-caching/)
 * Good morning,
 * Site is [http://www.hessel.org](http://www.hessel.org)
 * Varnish is not caching, and we cannot save WordPress menus (receive 503 from 
   Varnish cache server).
 * Here is the Varnish status report. How do I determine what is causing the issues?
 * – Varnish is running but cannot cache.
    – You’re using a Custom Varnish IP that
   doesn’t appear to match your server IP address. If you’re using multiple Varnish
   servers or IPv6, this is fine. Please make sure you’ve properly configured it
   according to your webhost’s specifications. – Because CloudFlare is running, 
   you may experience some cache oddities. Make sure you configure WordPress for
   Cloudflare. – Your site is compressing content and making the internet faster.–
   The “Age” header is set to less than 1, which means you checked right when Varnish
   cleared the cache for that url or Varnish is not actually serving the content
   for that url from cache. Check again (refresh the page) but if it happens again,
   it could be one of the following reasons: That url is excluded from the cache
   on purpose in the Varnish vcl file (in which case everything is working.) – A
   theme or plugin is sending cache headers that are telling Varnish not to serve
   that content from cache. This means you will have to fix the cache headers the
   application is sending to Varnish. A lot of the time those headers are Cache-
   Control and/or Expires. – A theme or plugin is setting a session cookie, which
   can prevent Varnish from serving content from cache. You need to make it not 
   send a session cookie for anonymous traffic. Something is setting the header 
   Cache-Control to “no-cache” which means visitors will never get cached pages.–
   Something is setting the header Pragma to “no-cache” which means visitors will
   never get cached pages.
 * Thanks,
 * Terry

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [9 years ago](https://wordpress.org/support/topic/varnish-not-caching/#post-9164825)
 * You’ll have to manually debug it by using the information provided.
 * I don’t offer hands-on debugging for every site, and instead offer that page 
   to help YOU start with where to look for issues. You have cookies and no-cache
   settings being put down. If you don’t know how to look for those in the code 
   of your plugins and themes, then you have to do the normal debugging of turning
   OFF plugins and then turning them back on one at a time and testing until you
   figure out which one breaks Varnish.

Viewing 1 replies (of 1 total)

The topic ‘Varnish not caching’ is closed to new replies.

 * ![](https://ps.w.org/varnish-http-purge/assets/icon-256x256.png?rev=3027185)
 * [Proxy Cache Purge](https://wordpress.org/plugins/varnish-http-purge/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/varnish-http-purge/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/varnish-http-purge/)
 * [Active Topics](https://wordpress.org/support/plugin/varnish-http-purge/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/varnish-http-purge/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/varnish-http-purge/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/varnish-not-caching/#post-9164825)
 * Status: resolved