Merge lp:~cjwatson/launchpad/dep11-mtime into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Merged at revision: | 17946 | ||||
| Proposed branch: | lp:~cjwatson/launchpad/dep11-mtime | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
138 lines (+45/-15) 2 files modified
lib/lp/archivepublisher/publishing.py (+21/-11) lib/lp/archivepublisher/tests/test_publisher.py (+24/-4) |
||||
| To merge this branch: | bzr merge lp:~cjwatson/launchpad/dep11-mtime | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| William Grant | code | 2016-03-11 | Approve on 2016-03-15 |
|
Review via email:
|
|||
Commit Message
Fine-tune publisher timestamp syncing to avoid interfering with files that are fetched from other sources rather than generated internally.
Description of the Change
Fine-tune publisher timestamp syncing to avoid interfering with files that are fetched from other sources rather than generated internally.
| Colin Watson (cjwatson) wrote : | # |
The relevant cache headers are only set for a very limited set of files.
E.g. in ubuntu-mirror:
<Files ~ "Release(
Header append Cache-Control "proxy-revalidate"
</Files>
In general this seems to equate to the core set of files produced by
apt-ftparchive and other necessary publisher functions, rather than the
ones I'm calling "extra" files that are synced in from elsewhere; the
latter would never have had special Expires applied, so all we were
achieving was to bump its Last-Modified, which probably didn't achieve
much except causing unnecessary redownloads. curl against the current
archive confirms:
$ curl -Is http://
Cache-Control: max-age=1264, proxy-revalidate
Expires: Tue, 15 Mar 2016 02:48:00 GMT
$ curl -Is http://
$
Of course this is all fairly weird and ought to be replaced by by-hash,
but in the interim I don't think this change breaks anything to do with
cache headers.

This will fix the out of dateness problem, but will it not reintroduce the timestamp-based cache header desync thing for non-core files?