[tor-bugs] #26132 [Metrics/Relay Search]: Fix the Expires header on relay search

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri May 18 21:56:35 UTC 2018


#26132: Fix the Expires header on relay search
--------------------------------------+--------------------------
     Reporter:  teor                  |      Owner:  metrics-team
         Type:  defect                |     Status:  new
     Priority:  Medium                |  Milestone:
    Component:  Metrics/Relay Search  |    Version:
     Severity:  Normal                |   Keywords:
Actual Points:                        |  Parent ID:
       Points:                        |   Reviewer:
      Sponsor:                        |
--------------------------------------+--------------------------
 Sometimes I get really stale (8 hours old) cached relay search pages. I
 think this happens because the page sets an Expires header in 1970. And I
 think my browser ignores that time, because it's before the Date header.
 Then it guesses that it can be cached for multiple hours.

 Please set an accurate "Expires" header on relay search. You could set it
 to a few minutes after the scheduled time of the next Onionoo job. We
 could also add a max-age of slightly more than an hour.

 Here is the relevant HTTP spec:
 ​https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.2.4

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/26132>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list