[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #26131 [Internal Services/Tor Sysadmin Team]: Add an Expires header to consensus-health



#26131: Add an Expires header to consensus-health
-------------------------------------------------+------------------------
 Reporter:  teor                                 |          Owner:  tpa
     Type:  defect                               |         Status:  closed
 Priority:  Medium                               |      Milestone:
Component:  Internal Services/Tor Sysadmin Team  |        Version:
 Severity:  Normal                               |     Resolution:  fixed
 Keywords:                                       |  Actual Points:
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+------------------------
Changes (by weasel):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 I put these rules in place in the apache config for now.
 Note that maybe they should live in a .htaccess.  Let me know if you want
 to change to that.

 {{{
         ExpiresActive On
         ExpiresDefault "access plus 1 hour"

         ExpiresByType image/vnd.microsoft.icon "access plus 1 day"
         ExpiresByType application/javascript "access plus 1 day"
         ExpiresByType text/css "access plus 1 day"

         <FilesMatch "(bwauth-stats-all\.csv|bwauth-stats\.csv|consensus-
 health\.html|download-stats\.csv|fallback-dir-
 stats\.csv|graphs\.html|historical\.db|index\.html|relay-indexes\.txt
 |vote-stats\.csv)$">
                 ExpiresDefault "modification plus 1 hour"
         </FilesMatch>
         <FilesMatch "(consensus-
 health-[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{2}-[0-9]{2}.html)$">
                 ExpiresDefault "access plus 1 week"
         </FilesMatch>

         Header append Cache-Control "public"
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/26131#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs