~alinuxninja/nginx-edge/trunk

« back to all changes in this revision

Viewing changes to debian/modules/ngx_pagespeed/psol/include/pagespeed/kernel/http/http_options.h

  • Committer: Vivian
  • Date: 2015-12-04 18:20:11 UTC
  • Revision ID: git-v1:a36f2bc32e884f7473b3a47040e5411306144d7d
* Do not extract psol.tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright 2011 Google Inc.
2
 
//
3
 
// Licensed under the Apache License, Version 2.0 (the "License");
4
 
// you may not use this file except in compliance with the License.
5
 
// You may obtain a copy of the License at
6
 
//
7
 
//      http://www.apache.org/licenses/LICENSE-2.0
8
 
//
9
 
// Unless required by applicable law or agreed to in writing, software
10
 
// distributed under the License is distributed on an "AS IS" BASIS,
11
 
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 
// See the License for the specific language governing permissions and
13
 
// limitations under the License.
14
 
 
15
 
// Author: sligocki@google.com (Shawn Ligocki)
16
 
 
17
 
#ifndef PAGESPEED_KERNEL_HTTP_HTTP_OPTIONS_H_
18
 
#define PAGESPEED_KERNEL_HTTP_HTTP_OPTIONS_H_
19
 
 
20
 
#include "pagespeed/kernel/base/basictypes.h"
21
 
 
22
 
namespace net_instaweb {
23
 
 
24
 
// Any options which need to be accessed in http/ should be in here.
25
 
struct HttpOptions {
26
 
  // Weather to respect Vary headers for resources.
27
 
  // Vary is always respected for HTML.
28
 
  bool respect_vary;
29
 
  // TTL assigned to resources with no explicit caching headers.
30
 
  int64 implicit_cache_ttl_ms;
31
 
  // Minimum TTL for cacheable resources. If resources have an explicit TTL
32
 
  // less than this, we increase it to this min value. -1 for no minimum.
33
 
  int64 min_cache_ttl_ms;
34
 
 
35
 
  // Allow copy and assign.
36
 
};
37
 
 
38
 
extern const HttpOptions kDefaultHttpOptionsForTests;
39
 
 
40
 
// TODO(sligocki): We should not be using these default options. Fix callers.
41
 
extern const HttpOptions kDeprecatedDefaultHttpOptions;
42
 
 
43
 
}  // namespace net_instaweb
44
 
 
45
 
#endif  // PAGESPEED_KERNEL_HTTP_HTTP_OPTIONS_H_