Homepage does not refresh after being charged once
-
Hello team support,
I have a news site and if I load the homepage once and find it there a day later, the latest news is not displayed, I have to do F5 to get the fresh content.
I have however reduced the times : https://i.postimg.cc/qkRNQSgj/reglages.png with no succes.
Can you help me ? ??
Thx to you !
-
Hi,
Could you please check HTTP response header when you unable to get new content ?
If status code is like 304 , then it will load browser cache instead of fetching from server again.
Best regards,
Hello,
Thx for your answer, i’m in code 200 on the homepage.
But still old content, I press control + F5, boom 10 news coming.
I have the same problem on my mobile or edge, really weird. ??Hi,
Could you please grab all the response header between old content page and new content page ?
and time stamp
Best regards,
Re,
Here the respond header of the homepape :
alt-svc: h3-24=":443"; ma=86400, h3-23=":443"; ma=86400 cache-control: max-age=7776000 cf-cache-status: DYNAMIC cf-h2-pushed: </min/092d7.css>,</min/6c4b2.css>,</min/9fc58.js>,</min/2b96f.js> cf-ray: 54692f866f3dcdc7-CDG content-encoding: br content-type: text/html; charset=UTF-8 date: Tue, 17 Dec 2019 13:18:54 GMT expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" expires: Mon, 16 Mar 2020 13:10:32 GMT link: <https://www.carteltec.com/wp-json/>; rel="https://api.w.org/", <https://www.carteltec.com/>; rel=shortlink, </min/092d7.css>; rel=preload; as=style,</min/6c4b2.css>; rel=preload; as=style,</min/9fc58.js>; rel=preload; as=script,</min/2b96f.js>; rel=preload; as=script server: cloudflare status: 200 vary: Accept-Encoding x-lsadc-cache: hit x-powered-by: PHP/7.3.12
And the request error :
:authority: www.carteltec.com :method: GET :path: / :scheme: https accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 accept-encoding: gzip, deflate, br accept-language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7 cache-control: max-age=0 cookie: _ga=GA1.2.124467127.1575463622; _cmpQcif3pcsupported=0; eupubconsent=BOrDKwGOrDKwGAKAbAENAAAAKAAAAA; euconsent=BOrDKwGOrDKwGAKAbBENCx-AAAAs5r_7__7-_9_-_f__9uj3Or_v_f__30ccL59v_B_zv-_7fi_20nV4u_1vft9yfk1-5ctDztp505iakivHmqNeb9v_mz3_5pxP78k89r7337Ew_v8_v8b7JCKN4A; wordpress_test_cookie=WP+Cookie+check; redux_current_tab_get=1; redux_current_tab=4; wp-settings-1=imgsize%3Dfull%26libraryContent%3Dbrowse%26edit_element_vcUIPanelWidth%3D650%26edit_element_vcUIPanelLeft%3D425px%26edit_element_vcUIPanelTop%3D102px%26editor%3Dtinymce%26mfold%3Do; wp-settings-time-1=1576570471; __cfduid=de57cf6dab110048e3c5fec1ee0b1d4221576588598 dnt: 1 referer: https://www.carteltec.com/prologue-el-nuevo-juego-del-creador-de-pubg-no-es-un-juego-de-disparos-promete-a-la-parte-interesada/ sec-fetch-mode: navigate sec-fetch-site: same-origin sec-fetch-user: ?1 upgrade-insecure-requests: 1 user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36
I refresh the page so i don’t have “new old” response to sent you yet.
-
This reply was modified 5 years, 2 months ago by
qut1.
Force F5 (with one new content) :
alt-svc: h3-24=":443"; ma=86400, h3-23=":443"; ma=86400 cache-control: max-age=7776000 cf-cache-status: DYNAMIC cf-h2-pushed: </min/092d7.css>,</min/2f81b.css>,</min/9fc58.js>,</min/2b96f.js> cf-ray: 5469474d7cf8690c-CDG content-encoding: br content-type: text/html; charset=UTF-8 date: Tue, 17 Dec 2019 13:35:08 GMT expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" expires: Mon, 16 Mar 2020 13:31:39 GMT link: <https://www.carteltec.com/wp-json/>; rel="https://api.w.org/", <https://www.carteltec.com/>; rel=shortlink, </min/092d7.css>; rel=preload; as=style,</min/2f81b.css>; rel=preload; as=style,</min/9fc58.js>; rel=preload; as=script,</min/2b96f.js>; rel=preload; as=script server: cloudflare status: 200 vary: Accept-Encoding x-lsadc-cache: hit x-powered-by: PHP/7.3.12
Hi,
x-lsadc-cache: hit , this one is interesting.
May I know how did you update the content ?
by design , if there is new post or something like that , LSCWP will trigger the purge. and then you should see it as x-lsadc-cache: miss
Best regards,
Sure, I test the pluging wp-automatic, who pushing new content automatically.
Hi,
If that plugin posts content bypass WP standard way , it may cause such issue.
Another thing I wonder is that , as you set TTL to 15 minutes , does the new page showed 15 minutes later ?
Best regards,
Hello,
After 15min no, i need to refresh manualy the page. On edge, on chrome, on mobile.
If i open the homepage on my mobile for exemple, it show me the same content i loaded the last time i check (can be 2 days !).
Hi,
Yes, but doesn’t it always require refresh to get new content ,
Or your page uses AJAX call ?
Best regards,
I saw this in the header you shared:
cf-cache-status: DYNAMIC
Does this mean that you have dynamic caching enabled at Cloudflare? If so, that’s probably your problem. You should turn of dynamic caching. Let CF handle the static files and LiteSpeed handle the dynamic content.
Hello Lisa,
Yes maybe its cloudflare.
Do you think this is one of this option ? https://www.zupimages.net/up/19/51/1lv5.png
(standard was the option in default)Thx to you !
Hi,
You can go to Cloudflare dashboard , there is an option to pause CF feature called “developer mode” you can try that.
though I don’t think it’s related to CF, but please try it anyway.
also please provide the report number
I don’t think that’s the setting. I believe
Standard
is correct.I’m not a CF expert, but I believe there is a setting for “custom caching” or something along those lines? I would check the settings under the Page Rules tab and also the Workers tab and see if anything jumps out at you.
Thx for you two for helping me, its great. ??
@lclarke There is no Page Rules or Workers in service on my CF admin
@qtwrk i’ll desactivate CF, have the homepage loaded on 2 browser et 1 mobile, wait 16 min after the published new content, clic one the logo to refresh normaly the page -> Still don’t have the new content.
Now without CF here was i have (after force F5 refresh) :
alt-svc: h3-24=":443"; ma=86400, h3-23=":443"; ma=86400 cache-control: max-age=7776000 cf-cache-status: DYNAMIC cf-h2-pushed: </min/8fe0c.css>,</min/2d361.css>,</min/89317.js>,</min/2744d.js> cf-ray: 546a1f111a906918-CDG content-encoding: br content-type: text/html; charset=UTF-8 date: Tue, 17 Dec 2019 16:02:26 GMT expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" expires: Mon, 16 Mar 2020 16:02:47 GMT link: <https://www.carteltec.com/wp-json/>; rel="https://api.w.org/", <https://www.carteltec.com/>; rel=shortlink, </min/8fe0c.css>; rel=preload; as=style,</min/2d361.css>; rel=preload; as=style,</min/89317.js>; rel=preload; as=script,</min/2744d.js>; rel=preload; as=script server: cloudflare set-cookie: _lscache_vary=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; secure; HttpOnly status: 200 vary: Accept-Encoding x-litespeed-cache-control: no-cache x-powered-by: PHP/7.3.12
-
This reply was modified 5 years, 2 months ago by
- The topic ‘Homepage does not refresh after being charged once’ is closed to new replies.