From 42cb1ba34d627cd1a5524db1dbeae03bf33ecdd6 Mon Sep 17 00:00:00 2001 From: Vladyslav Protasenia Date: Fri, 11 Aug 2023 10:23:39 +0300 Subject: [PATCH] fixed incorrectly working cache-max-age param --- .gitignore | 3 ++- publish.sh | 2 +- src/param/param.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e15bd14..2e365d9 100644 --- a/.gitignore +++ b/.gitignore @@ -76,4 +76,5 @@ fabric.properties # Android studio 3.1+ serialized cache file .idea/caches/build_file_checksums.ser -public/ \ No newline at end of file +public/ +dist/ \ No newline at end of file diff --git a/publish.sh b/publish.sh index 1d591ab..8f034ab 100755 --- a/publish.sh +++ b/publish.sh @@ -1,2 +1,2 @@ docker buildx create --use -docker buildx build --platform=linux/amd64,linux/arm64 --tag "devforth/spa-to-http:latest" --tag "devforth/spa-to-http:1.0.5" --push . +docker buildx build --platform=linux/amd64,linux/arm64 --tag "devforth/spa-to-http:latest" --tag "devforth/spa-to-http:1.0.6" --push . diff --git a/src/param/param.go b/src/param/param.go index 1e739e6..c3cbd6b 100644 --- a/src/param/param.go +++ b/src/param/param.go @@ -106,7 +106,7 @@ func ContextToParams(c *cli.Context) *Params { Brotli: c.Bool("brotli"), Threshold: c.Int64("threshold"), Directory: c.String("directory"), - CacheControlMaxAge: c.Int64("cache-control-max-age"), + CacheControlMaxAge: c.Int64("cache-max-age"), SpaMode: c.Bool("spa"), IgnoreCacheControlPaths: c.StringSlice("ignore-cache-control-paths"), CacheEnabled: c.Bool("cache"),