We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9141164 commit b5e1892Copy full SHA for b5e1892
plugins/optimization-detective/detect.js
@@ -434,7 +434,8 @@ export default async function detect( {
434
);
435
if (
436
! isNaN( previousVisitTime ) &&
437
- ( getCurrentTime() - previousVisitTime ) / 1000 < freshnessTTL
+ ( freshnessTTL < 0 ||
438
+ ( getCurrentTime() - previousVisitTime ) / 1000 < freshnessTTL )
439
) {
440
log(
441
'The current client session already submitted a fresh URL Metric for this URL so a new one will not be collected now.'
0 commit comments