Expire and Re-get html page.

20 views
Skip to first unread message

Jinyong Choi

unread,
May 6, 2015, 2:51:31 AM5/6/15
to mod-pagesp...@googlegroups.com
Hi there.
Please help me.

- Env :
Original content is max-age=300.
and it have many contents in HTML.

- Options in Httpd.conf :
ModPagespeedImplicitCacheTtlMs 300000
rewrite_javascript
rewrite_css
recompress_jpeg

If i often requested a test page before the expire, all target content will optimize by mod_pagespeed.
But, if i request again in six minutes or the next day, contents does not optimize in response.
Of course, the original content does not changed,
and next time i requested again quickly, It was optimized.

I think, if it have many object in HTML, it occurs this happen.
is that right?

1. I want to see a response for fully optimized, when i request first in the next day.
How to this?
Do you have any good idea?
or do it have a plan or feature about this?

2. What does mean the "flush window" in document ModPagespeedRewriteDeadlinePerFlushMs?
is that a one request?

Joshua Marantz

unread,
May 6, 2015, 9:15:53 AM5/6/15
to mod-pagespeed-discuss
The problem is that mod_pagespeed does not proactively freshen resources when the server is idle.  It only does so in response to requests from clients.

There are several ways to compensate for this:

1. Run a cron-job to crawl your site with 'wget' every minute.
2. Use LoadFromFile if possible -- this often makes it possible to get instant responses once a resource is initially optimized.
3. Increase ModPagespeedRewriteDeadlinePerFlushMs to (say) 5000 (5 seconds), which would increase the latency seen by clients requesting the page for the first time since the resources expired, but would make it much more likely the optimizations would increase in time.


Any one of these could work.

-Josh


--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/02a9db90-bc47-494d-b207-e81b8110f285%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages