Stelios
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] Last-Modified header is changing frequentlyHello Marko,
I’m sorry for multiple comments but I’m digging deeper here and I want to log everything in this thread for me and anyone else who might experience something like this in the future.
I enabled Debug logging and I found in the pagecache log file the following entries
[Sun, 14 Nov 2021 21:32:43 +0000] [/] [-] start, can_cache: true, reject reason: [Sun, 14 Nov 2021 21:32:43 +0000] [/] [-] no cache entry for www.radioevros.gr/ 55275e17cac96015371b0e03b7116732_ssl [Sun, 14 Nov 2021 21:32:48 +0000] [/] [-] start, can_cache: true, reject reason: [Sun, 14 Nov 2021 21:32:48 +0000] [/] [-] no cache entry for www.radioevros.gr/ 55275e17cac96015371b0e03b7116732_ssl [Sun, 14 Nov 2021 21:32:50 +0000] [/] [-] start, can_cache: true, reject reason: [Sun, 14 Nov 2021 21:32:50 +0000] [/] [-] no cache entry for www.radioevros.gr/ 55275e17cac96015371b0e03b7116732_ssl [Sun, 14 Nov 2021 21:33:10 +0000] [/] [-] start, can_cache: true, reject reason: [Sun, 14 Nov 2021 21:33:10 +0000] [/] [-] no cache entry for www.radioevros.gr/ 55275e17cac96015371b0e03b7116732_sslIt seems that the key is not found in my cache engine (Memcached) and as a result a new version is served. Each time the same key is calculated. I will dig deeper to find why this is happening and will update the thread.
Thanks
- This reply was modified 4 years, 6 months ago by Stelios.
Forum: Plugins
In reply to: [W3 Total Cache] Last-Modified header is changing frequentlyI found something interesting which I was missing.
Reading your wiki https://github.com/W3EDGE/w3-total-cache/wiki/FAQ:-Installation:-Nginx-Web-Server#configuration I saw that I didn’t have the following line in my nginx config:
include /var/www/vhosts/yoursite.com/nginx.conf;Adding this I see that the changes are reflected because now I can see the modified Cache Control header which I lowered to 120 seconds, so this works.
Cache-Control max-age=120, publicI believe you should highlight this more in the Browser Cache page just to make sure that people are aware that this is required, this is an administrative task outside wordpress / w3.
The issue still persist even after this change.
It is not clear to me why some responses have obsolete HTTP headers, as you can see below within 5 seconds I get 2 different responses and the 1st is missing Last-Modified and Expires.
Thanks!
curl https://www.radioevros.gr/ -I HTTP/1.1 200 OK Date: Sat, 13 Nov 2021 13:48:15 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Vary: Accept-Encoding Link: <https://www.radioevros.gr/wp-json/>; rel="https://api.w.org/" Link: <https://www.radioevros.gr/wp-json/wp/v2/pages/36189>; rel="alternate"; type="application/json" Link: <https://www.radioevros.gr/>; rel=shortlink Referrer-Policy: no-referrer-when-downgradecurl https://www.radioevros.gr/ -I HTTP/1.1 200 OK Date: Sat, 13 Nov 2021 13:48:21 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Vary: Accept-Encoding Link: <https://www.radioevros.gr/wp-json/>; rel="https://api.w.org/" Link: <https://www.radioevros.gr/wp-json/wp/v2/pages/36189>; rel="alternate"; type="application/json" Link: <https://www.radioevros.gr/>; rel=shortlink Last-Modified: Sat, 13 Nov 2021 13:48:20 GMT Expires: Sat, 13 Nov 2021 13:50:20 GMT Pragma: public Cache-Control: max-age=120, public ETag: "2ff2496d2a04cf5adf8ffa0b79ceefa6" Link: <https://www.radioevros.gr/wp-json/>; rel="https://api.w.org/" Link: <https://www.radioevros.gr/wp-json/wp/v2/pages/36189>; rel="alternate"; type="application/json" Link: <https://www.radioevros.gr/>; rel=shortlink Referrer-Policy: no-referrer-when-downgradeForum: Plugins
In reply to: [W3 Total Cache] Last-Modified header is changing frequentlyHi Marko,
I disabled “Set cache control header” from the General section in Performance>Browser Cache. I saved and purged the cache. The issue persists.
I believe it could be related to Nginx or Memcached. Testing in my localhost with Set cache control header enabled and Apache instead of Nginx and Disk caching instead of Memcached seems to work as expected (Last-Modified & Expires do not change).
Thank you.
Forum: Plugins
In reply to: [W3 Total Cache] Last-Modified header is changing frequentlyHi Marko,
Sure, the URL that I’m referring too is the main page of https://www.radioevros.gr/
Below you can see 4 requests within 2-3 minutes, ordered.
Request #2 is different than others, #1, #3 and #4 have the same ETag header but Last-Modified and Expires headers are different.
Requests are bypassing CloudFlare, they are send directly to origin server.
Thanks.
#1 curl https://www.radioevros.gr/ -I
HTTP/1.1 200 OK Date: Thu, 11 Nov 2021 23:49:51 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Vary: Accept-Encoding Link: <https://www.radioevros.gr/wp-json/>; rel="https://api.w.org/" Link: <https://www.radioevros.gr/wp-json/wp/v2/pages/36189>; rel="alternate"; type="application/json" Link: <https://www.radioevros.gr/>; rel=shortlink Last-Modified: Thu, 11 Nov 2021 23:49:50 GMT Expires: Fri, 12 Nov 2021 00:49:50 GMT Pragma: public Cache-Control: max-age=3599, public ETag: "c4a3003d0e6daaa00a84117a75379b06" Link: <https://www.radioevros.gr/wp-json/>; rel="https://api.w.org/" Link: <https://www.radioevros.gr/wp-json/wp/v2/pages/36189>; rel="alternate"; type="application/json" Link: <https://www.radioevros.gr/>; rel=shortlink#2 curl https://www.radioevros.gr/ -I
HTTP/1.1 200 OK Date: Thu, 11 Nov 2021 23:50:05 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Vary: Accept-Encoding Link: <https://www.radioevros.gr/wp-json/>; rel="https://api.w.org/" Link: <https://www.radioevros.gr/wp-json/wp/v2/pages/36189>; rel="alternate"; type="application/json" Link: <https://www.radioevros.gr/>; rel=shortlink#3 curl https://www.radioevros.gr/ -I
HTTP/1.1 200 OK Date: Thu, 11 Nov 2021 23:51:44 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Vary: Accept-Encoding Link: <https://www.radioevros.gr/wp-json/>; rel="https://api.w.org/" Link: <https://www.radioevros.gr/wp-json/wp/v2/pages/36189>; rel="alternate"; type="application/json" Link: <https://www.radioevros.gr/>; rel=shortlink Last-Modified: Thu, 11 Nov 2021 23:51:40 GMT Expires: Fri, 12 Nov 2021 00:51:40 GMT Pragma: public Cache-Control: max-age=3596, public ETag: "c4a3003d0e6daaa00a84117a75379b06" Link: <https://www.radioevros.gr/wp-json/>; rel="https://api.w.org/" Link: <https://www.radioevros.gr/wp-json/wp/v2/pages/36189>; rel="alternate"; type="application/json" Link: <https://www.radioevros.gr/>; rel=shortlink#4 curl https://www.radioevros.gr/ -I
HTTP/1.1 200 OK Date: Thu, 11 Nov 2021 23:52:31 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Vary: Accept-Encoding Link: <https://www.radioevros.gr/wp-json/>; rel="https://api.w.org/" Link: <https://www.radioevros.gr/wp-json/wp/v2/pages/36189>; rel="alternate"; type="application/json" Link: <https://www.radioevros.gr/>; rel=shortlink Last-Modified: Thu, 11 Nov 2021 23:52:10 GMT Expires: Fri, 12 Nov 2021 00:52:10 GMT Pragma: public Cache-Control: max-age=3579, public ETag: "c4a3003d0e6daaa00a84117a75379b06" Link: <https://www.radioevros.gr/wp-json/>; rel="https://api.w.org/" Link: <https://www.radioevros.gr/wp-json/wp/v2/pages/36189>; rel="alternate"; type="application/json" Link: <https://www.radioevros.gr/>; rel=shortlinkForum: Plugins
In reply to: [W3 Total Cache] Last-Modified header is changing frequentlyThank you for your response Marko. Really appreciated.
I’m using Memcached.
Regarding “have you set the Cloudflare to respect the existing Browser Cache headers?” do you mean creating a Page Rule with “Origin Cache Control” enabled? If this is what you mean, no I don’t use this, I would say I have the default configuration.
My “/” page is always returning CF-Cache-Status: DYNAMIC. Even 304 responses in “/” are returning DYNAMIC https://developers.cloudflare.com/cache/about/default-cache-behavior
I think that the issue is not related with CloudFlare because I’m bypassing CloudFlare and I’m calling my origin server directly with cURL and still the Last-Modified header is changing every 2-3-4 minutes.
Thanks
Forum: Plugins
In reply to: [W3 Total Cache] Manually minifying CSS files results in 404 not foundThank you Marko, is there an example in your wiki pages about that? It has to be done in the “nginx.conf” file?
“has to forward minify assets requests” so the problem here is that the file is never created?
Thanks!
Forum: Plugins
In reply to: [W3 Total Cache] Manually minifying CSS files results in 404 not foundThank you Marko,
It is already disabled, my current hosting setup is nginx in front of apache web server, but as I already tested the .htaccess files are working.
Is there a directory that I should find the minified css file? in order to start researching if the file is created successfully?
Forum: Plugins
In reply to: [W3 Total Cache] Manually minifying CSS files results in 404 not foundHello Marko,
Thank you for your quick response, this option is checked/enabled.
Thanks @lizkarkoski , i will contact support for this issue.
The file i’m referring to is already minified but it may break the rest of the process.Thank you very much, have a nice week.
Forum: Reviews
In reply to: [Facebook Reposter] Would have been amazingPlease add me to your skype in order to solve your issue [moderated]
- This reply was modified 8 years, 3 months ago by Andrew Nevins.
Forum: Reviews
In reply to: [Facebook Reposter] Would have been amazingIf you still cant make it work , i could take a look for you.
Forum: Reviews
In reply to: [Facebook Reposter] Would have been amazingWhat do you mean , it doesn’t work , please provide your followed steps in order to fix your issue. It is currently working in my site.
Forum: Plugins
In reply to: [Ajaxify Wordpress Site(AWS)] What about greek characters in url ??url = $this.attr(‘href’),
to
url = decodeURIComponent($this.attr(‘href’)),
solves the problem