Skip to content

Add "revert to cached" load action #28

@hamishmorgan

Description

@hamishmorgan

Currently, when a robots.txt is retrieved there are three possible outcomes:

  1. Fully disallow the site (e.g after 403 "Forbidden" HTTP response.)
  2. Fully allow the site (e.g after 404 "Not Found")
  3. Conditionally allow, based on the result of parsing the response.

Sometime, however, it would seem more sensible to back-off to a previously cached response, when that option is available. Examples where this behaviour would be desirable include:

  • Rate limiting responses; such as 420 "Enhance your calm", 429 "Too Many Requests", 509 "Bandwidth Limit Exceeded", and 598/8 "Netowork timeout error"
  • Cache-control responses: 304 "Not Modified"
  • Temporary errors: 408 "Request Timeout"

This would nice to have, but it's probably very important. I imagine these conditions don't occur very often.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions