reshetylo / admintools

Web based tools for system administrators
MIT License
0 stars 0 forks source link

Add cache-control header to static files #5

Closed reshetylo closed 7 years ago

reshetylo commented 7 years ago

ServeFile must add cache-control header for files from static folder

reshetylo commented 7 years ago

Since httprouter does not have this feature by default - fixed with workaround in 5ed194d

https://github.com/reshetylo/admintools/blob/5ed194dc4ef9379c7ae55f53017849c6151c613f/src/admintools/server.go#L138-L143