mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:16:28 +01:00
Merge pull request #938 from kataras/dev
misspell fixes Former-commit-id: 3becabe965f0e92f41ae65a63e2d8f8e7bc9937b
This commit is contained in:
commit
9bd70d7c91
2
cache/browser.go
vendored
2
cache/browser.go
vendored
|
@ -11,7 +11,7 @@ import (
|
||||||
// CacheControlHeaderValue is the header value of the
|
// CacheControlHeaderValue is the header value of the
|
||||||
// "Cache-Control": "private, no-cache, max-age=0, must-revalidate, no-store, proxy-revalidate, s-maxage=0".
|
// "Cache-Control": "private, no-cache, max-age=0, must-revalidate, no-store, proxy-revalidate, s-maxage=0".
|
||||||
//
|
//
|
||||||
// It can be overriden.
|
// It can be overridden.
|
||||||
var CacheControlHeaderValue = "private, no-cache, max-age=0, must-revalidate, no-store, proxy-revalidate, s-maxage=0"
|
var CacheControlHeaderValue = "private, no-cache, max-age=0, must-revalidate, no-store, proxy-revalidate, s-maxage=0"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
2
cache/browser_test.go
vendored
2
cache/browser_test.go
vendored
|
@ -31,7 +31,7 @@ func TestNoCache(t *testing.T) {
|
||||||
|
|
||||||
func TestStaticCache(t *testing.T) {
|
func TestStaticCache(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
// test change the time format, which is not reccomended but can be done.
|
// test change the time format, which is not recommended but can be done.
|
||||||
app := iris.New().Configure(iris.WithTimeFormat("02 Jan 2006 15:04:05 GMT"))
|
app := iris.New().Configure(iris.WithTimeFormat("02 Jan 2006 15:04:05 GMT"))
|
||||||
|
|
||||||
cacheDur := 30 * (24 * time.Hour)
|
cacheDur := 30 * (24 * time.Hour)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user