Frontend: put version number in static URL to cache-bust on updates
All checks were successful
/ build-container (push) Successful in 8m40s
All checks were successful
/ build-container (push) Successful in 8m40s
This commit is contained in:
parent
426ab872dd
commit
f90a7cd66d
4 changed files with 7 additions and 4 deletions
|
@ -28,7 +28,7 @@ func ListenAndServe(zwaveClient *zwavejs.Client) {
|
|||
server.Use(accessLogMiddleware)
|
||||
server.RouteNotFound("/*", tmpl("404.html"))
|
||||
|
||||
server.StaticFS("/static", frontend.Static)
|
||||
server.StaticFS("/static-"+config.Version, frontend.Static)
|
||||
server.GET("/", indexHandler)
|
||||
server.GET("/locks/:lock", lockHandler)
|
||||
server.GET("/locks/:lock/edit", lockEditHandler)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue