mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-15 09:53:01 -06:00
[feature] Use ETag for robots.txt to prevent mishaps (#3829)
* [feature] Use ETag for robots.txt to prevent mishaps * check incoming if-none-match header
This commit is contained in:
parent
c9de6c9a1e
commit
fd670c6a27
3 changed files with 26 additions and 1 deletions
|
|
@ -130,4 +130,9 @@ Disallow: /.well-known/webfinger
|
|||
Disallow: /.well-known/nodeinfo
|
||||
Disallow: /nodeinfo/
|
||||
`
|
||||
|
||||
// MD5 hash of basic robots.txt.
|
||||
RobotsTxtETag = `ce6729aacbb16fae3628210c04b462b7`
|
||||
// MD5 hash of robots.txt with NodeInfo disallowed.
|
||||
RobotsTxtDisallowNodeInfoETag = `a1e4ce6342978bc8d6c3e3dfab07cab4`
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue