Skip to content

Commit

Permalink
Fix preview document bug (#295)
Browse files Browse the repository at this point in the history
* add more static js to Cache-Control

fixes #292
[add more static js to Cache-Control]
---------

Co-authored-by: s-pro <33251086+sprotest@users.noreply.github.com>
Co-authored-by: epadalkin <epadalkin@s-pro.io>
  • Loading branch information
3 people committed Feb 22, 2023
1 parent 3edb833 commit 942a06b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 36 deletions.
2 changes: 1 addition & 1 deletion main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func main() {
e := www.Setup(ServerVersion)

// Static route
e.GET("/static/*", StaticHandler)
e.GET("/*", StaticHandler)

// Initial config middleware
configured, err := system.Configured()
Expand Down
60 changes: 25 additions & 35 deletions test/assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 942a06b

Please sign in to comment.