[ 
https://issues.apache.org/jira/browse/TS-4751?focusedWorklogId=26390&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-26390
 ]

ASF GitHub Bot logged work on TS-4751:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Aug/16 21:27
            Start Date: 12/Aug/16 21:27
    Worklog Time Spent: 10m 
      Work Description: GitHub user jpeach opened a pull request:

    https://github.com/apache/trafficserver/pull/864

    TS-4751: Prune cached headers before merging the updated response.

    When we update a cached response with a new server response, make
    sure to delete any cache-related beforehand. This is needed to
    handle the situation where an origin returns Age on an initial
    response but not on subsequent responses. We should not preserve
    the initial Age in this case.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jpeach/trafficserver fix/4571

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafficserver/pull/864.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #864
    
----
commit c12eaad61793caebe913ff2a6285726c139d64ba
Author: James Peach <[email protected]>
Date:   2016-08-12T21:15:29Z

    TS-4751: Prune cached headers before merging the updated response.
    
    When we update a cached response with a new server response, make
    sure to delete any cache-related beforehand. This is needed to
    handle the situation where an origin returns Age on an initial
    response but not on subsequent responses. We should not preserve
    the initial Age in this case.

----


Issue Time Tracking
-------------------

            Worklog Id:     (was: 26390)
            Time Spent: 10m
    Remaining Estimate: 0h

> revalidation can skip updating the Age header
> ---------------------------------------------
>
>                 Key: TS-4751
>                 URL: https://issues.apache.org/jira/browse/TS-4751
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cache, Core
>            Reporter: James Peach
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In {{HttpTransact::merge_and_update_headers_for_cache_update}}, the cached 
> {{Age}} header is only updated if the server response also contains an 
> {{Age}} header. If the revalidation response does not contain an {{Age}}, we 
> will retain the cache {{Age}} header which makes the document permanently 
> stale, causing a revalidation on every request.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to