Opened 13 years ago

Last modified 7 years ago

#2044 new defect

make sage -upgrade work with caching proxy servers

Reported by: mabshoff Owned by: mabshoff
Priority: major Milestone: sage-6.4
Component: website/wiki Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


In Phil reports the following problem:


I had many troubles getting the upgrade through a caching proxy on
which I've no control.
When running sage -upgrade, the proxy didn't let me getting the latest
versions, which made troubles with the critical files:

I could get around by providing manually the files and skipping the
download in local/bin/sage-update

But would it be possible to add some anti-caching headers to the
official sage server for those files?
It'd help a lot all people like me with a sage install behind caching
Sth like:
 Expires: Mon, 26 Jul 1997 05:00:00 GMT"
 Cache-Control: no-store, no-cache, must-revalidate"
 Cache-Control: post-check=0, pre-check=0", false
 Pragma: no-cache


Change History (6)

comment:1 Changed 13 years ago by mabshoff

Some more info from Phil:

Apparently your server is an Apache so after googling myself I found
those pages:

So I guess having a .htaccess in packages/ with sth like that is good
(be sure to have modules expire and headers and to allow .htaccess
<FilesMatch "(list|deps|newest_version|README)$">
<IfModule mod_expires.c>
  # any Expires Directives go here
  ExpiresActive On
  ExpiresDefault access
<IfModule mod_headers.c>
  # any Header directives go here
  Header set Cache-Control "no-store, no-cache, must-revalidate, max-
  Header set Pragma "no-cache"

And same for ../install

To be tested with sth like:
 wget -O /dev/null -S
to see the headers returned by the Apache server 



comment:2 Changed 8 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:3 Changed 7 years ago by jdemeyer

  • Component changed from distribution to website/wiki
  • Report Upstream set to N/A

comment:4 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:5 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:6 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4
Note: See TracTickets for help on using tickets.