Skip to content

Commit

Permalink
fixed incorrectly working cache-max-age param
Browse files Browse the repository at this point in the history
  • Loading branch information
MultiFox200 committed Aug 11, 2023
1 parent 3e74edc commit 42cb1ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@ fabric.properties
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

public/
public/
dist/
2 changes: 1 addition & 1 deletion publish.sh
Original file line number Diff line number Diff line change
@@ -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 .
2 changes: 1 addition & 1 deletion src/param/param.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 42cb1ba

Please sign in to comment.