• Resolved Dimbays

    (@dimbays)


    Hello!
    Tell me, please.
    I have 3 languages on my site (plugin polylang), all of them are cached by the plugin, except for one main language.
    For example, I see that the cache works on such a version of /uk, but does not work on such /.
    How to force caching the main / ?

    What should I write here – https://prnt.sc/US33fdc0YH8f , to cache the main page?
    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I don’t know how this polylang plugin works, but for SEO reason your default language should never have a redirection to a language depending URL like https://www.domain.com/uk. I think this plugin doesn’t respect a default language and that’s why you can’t force caching without language depending URL extension like /uk, because it always redirects.

    • This reply was modified 2 years, 4 months ago by serpentdriver.
    Plugin Support qtwrk

    (@qtwrk)

    you can use /$ to represent homepage URI only

    Thread Starter Dimbays

    (@dimbays)

    @qtwrk Thanks.
    I tried to register it, but still the page is not cached…

    In the browser writes:
    cache-control: no-cache, must-revalidate, max-age=0
    content-encoding: br
    content-type: text/html; charset=UTF-8
    date: Wed, 13 Jul 2022 09:01:58 GMT
    expires: Wed, 11 Jan 1984 05:00:00 GMT
    type=”application/json”
    server: LiteSpeed
    vary: Accept-Encoding
    x-litespeed-cache-control: no-cache
    x-litespeed-tag: fc1_tag_priv,public:fc1_HTTP.200,public:fc1_front,public:fc1_URL.6666cd76f96956469e7be39d750cc7d9,public:fc1_F,public:fc1_Po.7,public:fc1_PGS,public:fc1_
    x-powered-by: PHP/7.4.30`

    Also a user of Polylang and when you activate the function to automatically detect a users browser language, Polylang disables the cache on the main landing page. You can also see this in the notice for this Polylang option.

    Plugin Support qtwrk

    (@qtwrk)

    yeah , that makes sense , if it detects by browser header or GeoIP , we should also be able to work around that part.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Force caching of the main page’ is closed to new replies.