Wordpress hosted Cache update

54 views
Skip to first unread message

Oscar Castillo Barrón

unread,
Dec 7, 2011, 11:00:38 AM12/7/11
to page-speed-service-discuss
Hello, i've been running google page speed service for about a week,
and I have noticed that i have to flush cache every time I put a new
post in the front page, is this normal behavior ?! , how can fix
that? , is there any way to ping the service for update, or to keep
them from caching my homepage?!

Website: http://www.geek.com.mx

Thanks in advance

Nikhil Madan

unread,
Dec 7, 2011, 11:12:22 AM12/7/11
to os...@geek.mx, page-speed-service-discuss
Hi Oscar

It looks like you are setting the Expires header in the response to "Fri, 21 Dec 2012 00:00:00 GMT". As a result, we are assuming it is cacheable till that time. I would recommend that you lower the Expires time or set the Cache-Control header max-age.

For example, if you set the Cache-Control to "public, max-age=3600", this would mean that the PSS servers would cache the page for 1 hour. After an hour, they would re-fetch the content from your backend. The benefit of this is that the PSS servers respond directly out of their cache for an hour and do not have to contact your backend which can increase the response time to the end user. You could reduce the max-age to 0 if you want the PSS servers to not cache the response at all, but I wouldn't recommend this unless you are frequently updating the content on the page.

Thanks
Nikhil

Oscar Castillo Barrón

unread,
Dec 7, 2011, 11:17:19 AM12/7/11
to page-speed-service-discuss
Oh okey, I set them long time ago in the htaccess I completely forgot
about it

Thanks!

Ram Ramani

unread,
Mar 6, 2013, 12:01:44 PM3/6/13
to brunohm...@gmail.com, page-speed-se...@googlegroups.com, os...@geek.mx
On Wed, Mar 6, 2013 at 1:41 AM, Bruno Mertins <brunohm...@gmail.com> wrote:
Hi Nikhil,

So what do you think is the perfect Cache-Control max-age for a normal blog? I am having the same problem as Oscar.
It really depends on what your needs are. The questions to ask yourself is "How long are you willing to wait for your changes to show up to end users after you make an edit? " That should be the max-age. Note that the answer is really 0 in some cases.

Thanks,

Bruno

--
You received this message because you are subscribed to the Google Groups "page-speed-service-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to page-speed-service-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages