• Resolved Jimmy

    (@k2ost)


    Hi! I have read that purging is automatically run on homepage, category, tags and a specific post after make / edit a post. But, I’m already make a post and my homepage is still the same for unlogin guest. So for example :

    I have Post :
    how to make ice cream
    how to make spaghetti

    Mr. X go to my homepage and see there is 2 post.

    And i made another post :
    how to make lasagna

    And i click purge varnish.

    I go to homepage and i see there is 3 post on my homepage.

    But Mr.X that already go to my homepage is still seeing 2 post (how to make ice cream and spaghetti) until he going to refresh it once again. After Mr.X refresh my homepage with his own then it appear 3 post on homepage. The question is, is Mr.X actually have to hit refresh button first to see 3 post? Cuz I can’t be announce “please refresh after going to my homepage”.

    So it is how varnish really work? if so then i got it and i wanna ask is there any way to white listing homepage from being cached? So homepage will load fully if there is a new post. Thanks for your time read this ^^

    I using dreampress 2 by dreamhost btw ??

    https://www.ads-software.com/plugins/varnish-http-purge/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Well Yeah. That’s how the internet works.

    If you’re on a page and it changes, you have to press refresh to see the new content.

    Thread Starter Jimmy

    (@k2ost)

    No that not what i mean. I know wordpress is not realtime show up post if there is new. but the scenario is :

    even if Mr.X is already close my site.

    and i create new post.

    and tomorrow Mr.X is open his new blank tab browser (Not clearing his browser cache) and access my site again he is still seeing 2 post in my homepage. until he press f5 or clear his browser cache (so it’s like have to refresh on my homepage twice) to see 3 post on my homepage.

    Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    No. Varnish will have flushed the cache on the server which will tell the browser “This page is newer than you have in your local cache, let’s reload.”

    He would only have to refresh his page if his browser isn’t checking that, which would happen with or without Varnish.

    Thread Starter Jimmy

    (@k2ost)

    Oh! I see. thanks for very well explanation. But is there any factor that make browser not checking newer page in server & local?

    Thread Starter Jimmy

    (@k2ost)

    Finalyyyy i can figure it out!

    So, It happens because of one of my plugin named “Leverage Browser Caching Ninjas” that put expiring to some html so even there is some newer page on server but the local page is not expiring (CMIIW) (it’s set for 1 month with that plugin) so it still showing the old one on my homepage till i hit refresh. after i uninstall that plugin the problem its solved! btw thanks for your support ^^ Really appreciate that ??

    THIS is a VERY important case!!!
    I think this is the cause that erratically (not allways) my client leave a message of someone that had picked a outdated page!!!

    1) Please could you give your advice about how header must be to assure nobody get outdated page.

    Currently i am testing “”SEO-HEADERS-Easy” Protocol HTTP 1.1″ plugin, that when i check it with curl -s -I -L https://sitedomain.com/home/ return me

    HTTP/1.1 200 OK
    Server: nginx
    Date: Wed, 28 Oct 2015 13:36:29 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    Vary: Accept-Encoding
    Cache-Control: no-store
    Last-Modified: Wed, 28 Oct 2015 13:03:05 GMT
    Vary: Accept-Encoding
    Age: 0
    X-Cache: HIT

    Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    If you set cache-control to no-cache (not no-store) and the Age to 0, then Vanrish won’t cache the page if that’s how you set your server.

    That said, not caching the front page is sort of stupid. That’s going to get the most traffic.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘White listing 'Homepage' From Cached’ is closed to new replies.