mirror of
https://github.com/minio/minio.git
synced 2025-11-29 21:33:31 -05:00
browser-caching: enable browser caching for WebUI
This commit is contained in:
@@ -55,9 +55,10 @@ type WebAPI struct {
|
||||
|
||||
func getWebAPIHandler(web *WebAPI) http.Handler {
|
||||
var mwHandlers = []MiddlewareHandler{
|
||||
TimeValidityHandler, // Validate time.
|
||||
AuthHandler, // Authentication handler for verifying tokens.
|
||||
CorsHandler, // CORS added only for testing purposes.
|
||||
setCacheControlHandler, // Adds Cache-Control header
|
||||
TimeValidityHandler, // Validate time.
|
||||
AuthHandler, // Authentication handler for verifying tokens.
|
||||
CorsHandler, // CORS added only for testing purposes.
|
||||
}
|
||||
if web.AccessLog {
|
||||
mwHandlers = append(mwHandlers, AccessLogHandler)
|
||||
|
||||
Reference in New Issue
Block a user