WebPagetest Forums
Documentation on clear_rv parameter - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: Documentation on clear_rv parameter (/showthread.php?tid=13044)

Documentation on clear_rv parameter - pganti - 06-19-2014 03:03 AM

https://github.com/WPO-Foundation/webpagetest/blob/master/www/runtest.php#L129 clearly shows we have a parameter called clear_rv which seems to be useful to simulate a e-commerce visitor to a page after a week from the first visit to the site

Is that right? Any pointers to a doc?

RE: Documentation on clear_rv parameter - pmeenan - 06-19-2014 03:32 AM

You can specify an amount of time in seconds and it will delete any cache entries that expire before that. It's functionally equivalent to the expireCache script command: https://sites.google.com/a/webpagetest.org/docs/using-webpagetest/scripting#TOC-expireCache

That said, it still has some significant issues because it deletes the entries forcing a fresh download, not an if-modified-since check (and it's only implemented for IE right now).

A better solution would be to munge the expires headers as they come in and subtract the time from every resource but it hasn't been a high enough priority to bother with.

RE: Documentation on clear_rv parameter - marty90 - 04-07-2018 12:50 AM

Do you know any workaround do simulate a visit after a given amount of time?
A solution is to use a script command like "sleep XX", but it does not scale with large values.