chore: disable openapi page cdn cache

This commit is contained in:
engigu
2026-03-10 14:06:44 +08:00
parent 8d25dd5e65
commit f4687f6cf6
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -72,6 +72,9 @@ func initOpenAPIRoutes(root *gin.RouterGroup, urlPrefix string) {
</body>
</html>`
c.Header("Content-Type", "text/html; charset=utf-8")
c.Header("Cache-Control", "no-cache, no-store, max-age=0, must-revalidate")
c.Header("Pragma", "no-cache")
c.Header("Expires", "0")
c.Status(http.StatusOK)
c.Writer.Write([]byte(scalarHTML))
c.Abort()