mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
console/docs: tell documentation is public
Initially, the goal was to also add client caching for POST requests. However, no browser respect the cache for POST.
This commit is contained in:
@@ -126,7 +126,7 @@ func (c *Component) docsHandlerFunc(gc *gin.Context) {
|
||||
gc.JSON(http.StatusInternalServerError, gin.H{"message": "Unable to render document."})
|
||||
return
|
||||
}
|
||||
gc.Header("Cache-Control", "max-age=300")
|
||||
gc.Header("Cache-Control", "max-age=300, public")
|
||||
gc.PureJSON(http.StatusOK, gin.H{
|
||||
"markdown": buf.String(),
|
||||
"toc": toc,
|
||||
|
||||
Reference in New Issue
Block a user