Updated Branches: refs/heads/master 0735f31fd -> 84f0a8612
TAP5-1964: In production mode, placeholder timestamp needs to be limited to one-second accuracy Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/84f0a861 Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/84f0a861 Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/84f0a861 Branch: refs/heads/master Commit: 84f0a86125045aad64c8cb4384b77b3ae725ff07 Parents: 0735f31 Author: Howard M. Lewis Ship <[email protected]> Authored: Fri Jun 29 15:19:47 2012 -0700 Committer: Howard M. Lewis Ship <[email protected]> Committed: Fri Jun 29 15:20:35 2012 -0700 ---------------------------------------------------------------------- .../services/assets/ResourceChangeTrackerImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/84f0a861/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ResourceChangeTrackerImpl.java ---------------------------------------------------------------------- diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ResourceChangeTrackerImpl.java b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ResourceChangeTrackerImpl.java index 46cec88..55c6cfb 100644 --- a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ResourceChangeTrackerImpl.java +++ b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/ResourceChangeTrackerImpl.java @@ -1,4 +1,4 @@ -// Copyright 2011 The Apache Software Foundation +// Copyright 2011, 2012 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ public class ResourceChangeTrackerImpl extends InvalidationEventHubImpl implemen * all exposed assets include a URL with a version number, and each new deployment of the application should change * that version number. */ - private final long fixedLastModifiedTime = System.currentTimeMillis(); + private final long fixedLastModifiedTime = Math.round(System.currentTimeMillis() / 1000d) * 1000L; public ResourceChangeTrackerImpl(ClasspathURLConverter classpathURLConverter, @Symbol(SymbolConstants.PRODUCTION_MODE)
