Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #102020
    Suraj
    Guest

    I have a custom login token but the header is cached and the login picture is shown to all users. I want to exclude header from being cached.

    #102067
    Marko Vasiljevic
    Keymaster

    Hello Suraj,

    Thank you for reaching out and I am happy to assist you with this.
    There are two ways to achieve this. The first and the best one is to fire. the login process using ajax which will bypass the cache.
    Alternatively, you can use Page Fragment Cache and wrap the specific PHP code with replacing the PHP code and excluding the part of the page from being cached.
    You can check more details on our FAQ page.

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Restrict header from being cached’ is closed to new replies.