fastcgi_cache related questions

One of my sites is behaving weird, all other sites are fine. I’m trying to pinpoint what the difference is but all sites I host are using (more or less) the same config…

If I go to this site: http://web-sniffer.net/ and check this site: http://www.ict-consult.co.za/ (hosted on my server) I see this directive:

Date: Thu, 01 Jan 1970 00:00:00 GMT

If I check another site, i.e. http://www.intramed-distribution.co.za it shows:

Date: Sun, 23 Mar 2014 19:12:32 GMT

Some also have these headers:

Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache

And on top of that, apparently only one site shows this header:
Fastcgi-Cache: HIT

All the others always say: BYPASS :frowning:

Only one of my sites uses ngx_pagespeed as I activate it per site.

Not even sure where to start…

What do you suggest? Shall I install 2 new WordPress instances that are both running straight through my server and not through any other CDN, i.e .Cloudflare, then only activate your NGINX Helper plugin and nothing else and see if I get similar results? All sites use the same basic nginx.conf + the other snippets I manually give the vhosts, but for testing purposes I can keep those to the same basics.

LOL. I googled this problem and found a very good explanation of the issues from exactly 1 year ago. Funny enough I raised the exact same issue in that thread from a year ago :-/

Give it a read, I think its a very good explanation on how fastcgi_cache and ngx_pagespeed work together. Make sure to read all the replies in that thread:

https://groups.google.com/d/msg/ngx-pagespeed-discuss/vzSq8XQPGmM/9mE11D-9U8YJ

Thanks for link. I will read it.

To manage your wordpress sites, I will recommend using http://rtcamp.com/easyengine

I found conversation interesting and useful.

I also found this link useful - https://developers.google.com/speed/pagespeed/module/downstream-caching

Thanks, reading those right now!