You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by shukitchan <gi...@git.apache.org> on 2017/03/01 00:32:54 UTC

[GitHub] trafficserver pull request #1516: Implement Cache-Control: immutable handlin...

Github user shukitchan commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/1516#discussion_r103586416
  
    --- Diff: plugins/esi/combo_handler.cc ---
    @@ -136,6 +138,24 @@ struct InterceptData {
       ~InterceptData();
     };
     
    +/*
    + * This class is responsible for keeping track of and processing the various
    + * Cache-Control values between all the requested documents
    + */
    +struct CacheControlHeader {
    +  // Update the object with a document's Cache-Control header
    +  void update(TSMBuffer bufp, TSMLoc hdr_loc);
    +
    +  // Return the Cache-Control for the combined document
    +  string generate() const;
    +
    +  // Cache-Control values we're keeping track of
    +  int _max_age    = 315360000; // max value (10 years)
    --- End diff --
    
    probably should be unsigned?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---