Hi, Dreamhost has pinpointed the problem with my site working with their varnish caching, and tell me it is an error in the coding with xstore theme. They told me to specifically mention that pages are set to no cache and that the theme is rewriting cookies and php sessions for every page load.
I’ll include the varnish error log in the private section below. The following are the warning I get on the varnish status in the dashboard:
Varnish is running but is unable to cache your site. Please review the following output to diagnose the issue.
Something is setting the header Cache-Control to “no-cache” which means visitors will never get cached pages.
Something is setting the header Cache-Control to “max-age=0” which means a page can be no older than 0 seconds before it needs to regenerate the cache.
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 serving cached content for that url. Check again but if it happens again, then either the URL is intentionally excluded from caching, or a theme or plugin is sending cache headers or cookies that instruct varnish not to cache.
Something is setting the header Pragma to “no-cache” which means visitors will never get cached pages. This is usually done by plugins.
A plugin or theme is setting a PHPSESSID cookie on every pageload. This makes Varnish not deliver cached pages.
Please help me configure xstore to work with their varnish.
Thank you