mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 18:36:14 -06:00
[feature] Use ETag for robots.txt to prevent mishaps
This commit is contained in:
parent
c9de6c9a1e
commit
4e6874ac96
3 changed files with 10 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ func (rb *Robots) Route(r *router.Router, m ...gin.HandlerFunc) {
|
|||
// https://www.rfc-editor.org/rfc/rfc9309.html#section-2.4
|
||||
robotsGroup.Use(
|
||||
middleware.CacheControl(middleware.CacheControlConfig{
|
||||
Directives: []string{"public", "max-age=86400"},
|
||||
Directives: []string{"public", "no-cache"},
|
||||
Vary: []string{"Accept-Encoding"},
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue