You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ro...@apache.org on 2018/05/30 19:42:21 UTC

[incubator-trafficcontrol] branch master updated: Modification to use the LastModified date on a revalidation request.

This is an automated email from the ASF dual-hosted git repository.

rob pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 24d960c  Modification to use the LastModified date on a revalidation request.
24d960c is described below

commit 24d960ce0effc37a0e0874c51a562ce5b6a434c5
Author: John Rushford <jr...@apache.org>
AuthorDate: Wed May 30 19:24:13 2018 +0000

    Modification to use the LastModified date on a revalidation request.
---
 grove/cache/retryinggetter.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grove/cache/retryinggetter.go b/grove/cache/retryinggetter.go
index b70a6d4..427e96f 100644
--- a/grove/cache/retryinggetter.go
+++ b/grove/cache/retryinggetter.go
@@ -132,7 +132,7 @@ func GetAndCache(
 			proxyURLStr = proxyURL.Host
 		}
 		if revalidateObj != nil {
-			req.Header.Set(ModifiedSinceHdr, revalidateObj.RespRespTime.Format(time.RFC1123))
+			req.Header.Set(ModifiedSinceHdr, revalidateObj.LastModified.Format(time.RFC1123))
 		} else {
 			req.Header.Del(ModifiedSinceHdr)
 		}

-- 
To stop receiving notification emails like this one, please contact
rob@apache.org.