1
// Copyright 2011 Google Inc.
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
7
// http://www.apache.org/licenses/LICENSE-2.0
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.
15
// Author: sligocki@google.com (Shawn Ligocki)
17
#ifndef PAGESPEED_KERNEL_HTTP_HTTP_OPTIONS_H_
18
#define PAGESPEED_KERNEL_HTTP_HTTP_OPTIONS_H_
20
#include "pagespeed/kernel/base/basictypes.h"
22
namespace net_instaweb {
24
// Any options which need to be accessed in http/ should be in here.
26
// Weather to respect Vary headers for resources.
27
// Vary is always respected for HTML.
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;
35
// Allow copy and assign.
38
extern const HttpOptions kDefaultHttpOptionsForTests;
40
// TODO(sligocki): We should not be using these default options. Fix callers.
41
extern const HttpOptions kDeprecatedDefaultHttpOptions;
43
} // namespace net_instaweb
45
#endif // PAGESPEED_KERNEL_HTTP_HTTP_OPTIONS_H_