You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2020/12/23 02:09:16 UTC

[GitHub] [trafficserver] shinya1020 commented on a change in pull request #7401: Fix unnecessary addition of Expires header

shinya1020 commented on a change in pull request #7401:
URL: https://github.com/apache/trafficserver/pull/7401#discussion_r547600314



##########
File path: proxy/http/HttpTransact.cc
##########
@@ -4464,7 +4464,7 @@ HttpTransact::handle_cache_operation_on_forward_server_response(State *s)
     //   before issuing a 304
     if (s->cache_info.action == CACHE_DO_WRITE || s->cache_info.action == CACHE_DO_NO_ACTION ||
         s->cache_info.action == CACHE_DO_REPLACE) {
-      if (s->is_cacheable_and_negative_caching_is_enabled) {
+      if (s->is_cacheable_and_negative_caching_is_enabled && is_negative_caching_appropriate(s)) {

Review comment:
       @bneradt Thank you for your suggestions. I confirmed that Expires header issue no longer occurs on your branch.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org