I have some doubt if the litespeed cache its ok or not, headers made me extra confusion then i decided to ask a help there.
Actually im usinf Litespeed (on litespeed server) and Cloudflare.
As you can see :
CF-Cache-Status: HIT but x-litespeed-cache: miss
HTTP/1.1 200 OK
Date: Wed, 19 Jul 2023 13:24:13 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
CF-Ray: 7e93488d5a5496db-SJC
CF-Cache-Status: HIT
Cache-Control: no-store, no-cache, must-revalidate
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Link: <https://www.dammos.com/wp-json/>;
rel="https://api.w.org/",
<https://www.dammos.com/wp-json/wp/v2/pages/70701>;
rel="alternate"; type="application/json",
<https://www.dammos.com/>; rel=shortlink
Strict-Transport-Security: max-age=63072000; includeSubDomains
Vary: Accept-Encoding
cf-apo-via: tcache
pragma: no-cache
x-content-type-options: nosniff
x-dns-prefetch-control: on
x-frame-options: SAMEORIGIN
x-litespeed-cache: miss
x-litespeed-cache-control: public,max-age=604800
x-litespeed-tag: 40e_HTTP.200,40e_front,40e_URL.6666cd76f96956469e7be39d750c
c7d9,40e_F,40e_Po.70701,40e_PGS,40e_,40e_MIN.2e51422
bb9ebd656ded9f7898b61cb2c.css,40e_MIN.901779cec1e9c1
b5a930d0b99e57558f.js
x-powered-by: PHP/8.1.18
x-turbo-charged-by: LiteSpeed
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudfl
are.com\/report\/v3?s=3engiiuLQjEAKHdtgOW2mnZBLy%2FjC70p3%
2FVnYsCvw09Yqef9uPk2I9KqM5UzoHo%2FOzoosk%2FmzrkIWAdlxlzz0x
209xn%2BQtiY0Zwo8QGMBrpZy5XQ348Ohr%2BWfh8PXcoVRcOFOGwnPZCC
w8MW"}],"group":"cf-
nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-
nel","max_age":604800}
Server: cloudflare
alt-svc: h3=":443"; ma=86400
Also i continue to get the
pragma: no-cache
My Report number is VXKRAOKB , please what setting im missing to made work correctly Litespedd and Cloudflare together?
Thank you for any kind of help!
]]>Header set Cache-Control “max-age=0, no-cache, no-store, must-revalidate”
Header set Pragma “no-cache”
Header set Expires “Mon, 29 Oct 1923 20:30:00 GMT”
These headers cause Cloudflare to not cache using edge cache and/or workers.
Please could you let me know how to stop WP-fastest cache adding these headers to .htaccess (short of 444ing the htaccess file)? Thanks.
]]>Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT"
The way I see it those lines shouldn’t be there but I guess I’m wrong so that’s why I’m asking.
]]>(Although Cloudflare has Page Rules that would be one way to deal with this, Page Rules become difficult to manage in circumstances where the pages you don’t want cached have no obvious URL pattern.)
]]>However, none of them offers you simple functionality. I found a very simple plugin that does it job to my needs
However, it’s still doesn’t override the caching for pages, I would prefer to enable 0 seconds cache and revalidate the content everytime, this way if the content has not been changed, it will not send the whole file, but will be 304 response code.
The main issue I see, is the prgama: no-cache header and I can’t remove it. I tried adjusting it using .htaccess, but it didn’t help;
<FilesMatch "^(\/|\/\.*\/)$">
<ifModule mod_headers.c>
Header unset Pragma
Header unset ETag
Header unset Expires
</ifModule>
</FilesMatch>
This rule still didn’t remove the pragma: no-cache header from the homepage or any other page.
How can I remove the pragma: no-cache for pages, posts?
]]>https://www.ads-software.com/plugins/add-headers/
]]>In my company we always respect pragma headers in our caching systems.
This might allow easier DOS of site, but I don’t think it’s that big of a problem.
My suggested fix can be seen here:
https://gist.github.com/onnimonni/b16edd012d4c64eb7b08
https://www.ads-software.com/plugins/wp-redis/
]]>The following headers are returned for all pages, sitewide, when we enable Events Manager:
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection Keep-Alive
Content-Type text/html; charset=UTF-8
Date Thu, 15 Nov 2012 03:33:07 GMT
Expires Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive timeout=5, max=100
Pragma no-cache
Server Apache
Transfer-Encoding chunked
X-Pingback https://d.example.com/xmlrpc.php
X-Powered-By PHP/5.3.6
In particular, note the pragma no-cache and cache-control headers, which don’t seem optimal if we want – at a minimum – browser caching to occur.
Since I was concerned that this is one of our older WP installs combined with an older EM plugin could’ve been the culprit, I installed a vanilla WP 3.4.2 and EM 5.2.9 instance. The same headers are returned. Disabling EM and reloading returns what I consider to be proper headers:
Connection Keep-Alive
Content-Length 7806
Content-Type text/html; charset=UTF-8
Date Thu, 15 Nov 2012 03:37:48 GMT
Keep-Alive timeout=5, max=90
Server Apache
X-Pingback https://example.com/wp2/xmlrpc.php
Environmental details are WP 3.4.2, EM 5.2.9, PHP 5.3.6, MySQL 5.5.9 running under MAMP; similar configuration on production servers with MediaTemple.
Any ideas?
https://www.ads-software.com/extend/plugins/events-manager/
]]>I apologize in advance, I am very green to WordPress. I have some basic HTML/Dreamweaver experience.. but anyhow:
I am making a new website for my small company. I purchased a theme and somehow along the way I broke my slider. Traditionally it has a left and right button faded over the image in the bottom left corner.
Somehow they have floated to the left and are now in the menu section of the website… which is disabling that menu all together.
To see what I am talking about this is where my preview currently is – www.rcsearles.com/wordpress/
Any ideas on how to fix this? I have tried going through the coding and I still can’t figure out where the issue is coming from. I even tried re-uploading the style.css from the original download and that didn’t fix the issue. I also tried other image sizes thinking that the width was expanding the invisible part of the window over the buttons… I don’t know…
Help!
]]>Hi. Ive been noticing that google doesnt crawl my site like it used to, and while checking the http server headers i found that my site is diffrent from the other wordpress blogs i run on the same server.
here it goes what i see:
Response Code: HTTP/1.1 200
Date: Wed, 30 Apr 2008 08:25:36 GMT
Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.5
X-Powered-By: PHP/5.2.5
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Content-Type: text/html; charset=UTF-8
Last-Modified: Wed, 30 Apr 2008 07:47:24 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
The other sites dont have the cach-control not the Pragma.
This is making google not to cache my site. I tried to update the wordpress and the problem presisits.
I also found that this might be related to a plugin called Crawl Rate Tracker as THIS Page says it has the same problem. I unnistalled and same problem.
I also think it could have been generated while i tried WP Super Cache.
Do you know any WordPress core file i can reupload so i can have it back to normal without the Cache Control And Pragma?
Please this is really urgent. Thanks