Clear cache
-
Hi,
We are running LS with QUIC cache.
When i clear the LS cache and flush the QUIC cache (both) it looks as if the users browser-cache is still “active” so they get an old version. (currently where AJAX is returning a 400 error).
Is there a way to SKIP cache on frontend or force a browsercache refresh?
Im thinking a temp-solution will be doing a ?no-cache GET setup or something – but i cant see if thats possible with LS + QUIC.
The page I need help with: [log in to see the link]
-
Hi,
When i clear the LS cache and flush the QUIC cache (both) it looks as if the users browser-cache is still “active” so they get an old version. (currently where AJAX is returning a 400 error).
No, LiteSpeed Cache is server-side cache , not client-side cache.
what do you mean by old version ? I mean like how did you check it ?
ajax 400 is different story.
Best regards,
We run a membership website where logged-in cache is active, to privately cache the pages.
However; for our LMS setup we have a button that “starts” the course. When this button is pressed; the website will continue to show the cached version of the site (where the button is still telling users to start the course)
(If the user forced empty cache in chrome; then they’ll see the right page. But if they update (F5) then they’ll go back to the old cached site without having the course started)
Same goes for our login-popup where the user logs in; but it doesnt register on their front end. Clear cache in chrome and it works correctly (or log in again – then it shows correctly)
Im not sure what im missing here or how to clear the content upon login/course-start etc. and figured there was something i could hook into to fix it.
The login popup is default in flatsome.
The LMS system is woocommerce’s SENSEI(Flatsome also has no UX Builder exempt like Divi so i assume things arent compatible with it)
-
This reply was modified 5 years, 8 months ago by
Patrick Thagaard.
-
This reply was modified 5 years, 8 months ago by
Patrick Thagaard.
Hi,
Could you please post full HTTP response header on any of these page in question ?
Best regards,
This is the header from SENSEI “Start Course”:
Request URL: https://www.femaleinvest.dk/course/modul-3-tips-og-tricks/ Request Method: GET Status Code: 200 (from ServiceWorker) Referrer Policy: no-referrer-when-downgrade access-control-allow-headers: * access-control-allow-methods: * access-control-allow-origin: * cache-control: no-transform, no-cache, no-store, must-revalidate content-encoding: br content-type: text/html; charset=UTF-8 date: Mon, 06 Jul 2020 09:07:42 GMT expires: Wed, 11 Jan 1984 05:00:00 GMT link: <https://www.femaleinvest.dk/wp-json/>; rel="https://api.w.org/", <https://www.femaleinvest.dk/?p=102056>; rel=shortlink, </wp-content/litespeed/cssjs/8f0e38e6cbee817366c734d4ae978d4e.css>; rel=preload; as=style,</wp-includes/js/jquery/jquery.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/5db70.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/7cbd3.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/0a629.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/2f317.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/04f17.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/74c08.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/266f7.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/f02c6.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/70959.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/b2358.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/e5f19.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/aae8d.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/1501b.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/63ac8.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/51c2e.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/6ead0.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/6150d.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/5d2a1.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/66dd7.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/10128.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/e8521.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/93ecf.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/d2405.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/24f17.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/05ffb.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/cb859.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/47197.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/b6ca9.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/9e12c.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/dedb5.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/16178.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/bbbb7.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/676fc.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/b60a8.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/5a791.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/c395c.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/f1f66.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/213b9.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/3b253.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/997d5.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/42470.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/e1e8d.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/fea80.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/b098f.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/bf821.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/b38b4.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/8a82b.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/08f88.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/66eda.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/0f04e.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/29814.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/6265e.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/f6a32.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/49e9f.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/d6a48.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/3337e.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/a09b2.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/f99d3.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/06369.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/c4a62.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/16fa2.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/52e9e.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/cb24b.js>; rel=preload; as=script,</wp-content/litespeed/cssjs/31def.js>; rel=preload; as=script server: LiteSpeed status: 200 vary: Accept-Encoding,User-Agent x-litespeed-cache-control: no-cache x-litespeed-tag: 884_ x-qc-pop: EU-DK-Copenhagen-30 Provisional headers are shown. Disable cache to see full headers. Referer: https://www.femaleinvest.dk/course/modul-3-tips-og-tricks/ Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36Hi,
x-litespeed-cache-control: no-cache
this means LiteSpeed is not caching it
It must be something else , object cache or opcache , please try check them
best regards,
-
This reply was modified 5 years, 8 months ago by
The topic ‘Clear cache’ is closed to new replies.