mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
misspell fixes
Former-commit-id: 7efa2d8641d8fc324231989cbfcc0905f1d90009
This commit is contained in:
parent
7b2409fc7f
commit
ff41c672ce
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