[metrics-bugs] #32065 [Metrics/Onionoo]: Cache-Control header on 404 does not permit caching

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Mar 10 07:34:11 UTC 2020

#32065: Cache-Control header on 404 does not permit caching
 Reporter:  irl              |          Owner:  metrics-team
     Type:  defect           |         Status:  needs_review
 Priority:  Medium           |      Milestone:
Component:  Metrics/Onionoo  |        Version:
 Severity:  Normal           |     Resolution:
 Keywords:                   |  Actual Points:
Parent ID:                   |         Points:
 Reviewer:                   |        Sponsor:
Changes (by karsten):

 * status:  new => needs_review


 How about we solve this by adding an `ErrorServlet` that handles all
 requests that Jetty cannot hand over to our main `ResourceServlet`? More
 generally, that servlet could respond to most non-200 requests. It would
 be an alternative to the Jetty-generated error page and could be in a
 custom-defined JSON format rather than in HTML. As a side effect it would
 allow us to include error messages (like a request was found bad) that
 could be processed by the client and displayed to the user. This would
 give us more control over response headers. Setting to needs_review to
 discuss the idea.

Ticket URL: <https://trac.torproject.org/projects/tor/ticket/32065#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online

More information about the metrics-bugs mailing list