1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

feat(api): introduce cache busting mechanism (#439)

This commit is contained in:
Anthony Lapenna 2016-12-31 12:20:38 +13:00 committed by GitHub
parent ecc8857a32
commit 6e98237419
8 changed files with 466 additions and 395 deletions

View file

@ -63,7 +63,7 @@ func (server *Server) Start() error {
endpointHandler.server = server
var uploadHandler = NewUploadHandler(middleWareService)
uploadHandler.FileService = server.FileService
var fileHandler = http.FileServer(http.Dir(server.AssetsPath))
var fileHandler = newFileHandler(server.AssetsPath)
server.Handler = &Handler{
AuthHandler: authHandler,