This commit is contained in:
WJQSERVER 2024-10-06 19:33:20 +08:00
parent 822b6c8cea
commit e3cffe70d9

View file

@ -196,6 +196,9 @@ func CopyResponseHeaders(resp *req.Response, c *gin.Context, cfg *config.Config)
if cfg.CORS.Enabled { if cfg.CORS.Enabled {
c.Header("Access-Control-Allow-Origin", "*") c.Header("Access-Control-Allow-Origin", "*")
} }
c.Header("Age", "10")
c.Header("Cache-Control", "max-age=300")
} }
func HandleError(c *gin.Context, message string) { func HandleError(c *gin.Context, message string) {