[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Cache-Control max-age on volatile archive files/folders



Hello all,

Do we have any HTTP mirrors that currently add explicit Cache-Control max-age headers (ie, mod_expires in Apache) do the debian archive? If not, is it feasible to request this? For example, with Apache, something like:

        <IfModule mod_expires.c>
        <LocationMatch ^/debian/dists/.*>
                # Default to 15 minutes for all objects in this folder
                ExpiresDefault "access plus 15 minutes"
                ExpiresActive On
        </LocationMatch>
        <LocationMatch ^/debian/dists/.*\.diff/(Index)?>
                # The Index file, and the directory index changes fairly rapidly
                ExpiresDefault "access plus 60 seconds"
                ExpiresActive On
        </LocationMatch>
        <LocationMatch ^/debian/dists/.*/i18n/(Index|Translation-.*)?>
                # The Index file and translation files get updated
                ExpiresDefault "access plus 60 seconds"
                ExpiresActive On
        </LocationMatch>
        <LocationMatch ^/debian/dists/.*/(binary-.*|source)/(Packages(\..*)?|Sources(\..*)?|Release)?>
                # Packages, Sources and Release files get updated frequently in non-stable...
                ExpiresDefault "access plus 60 seconds"
                ExpiresActive On
        </LocationMatch>
        <LocationMatch ^/debian/dists/.*/(Contents-.*\.(bz|gz)|(In)?Release(\.gpg)?)?>
                ExpiresDefault "access plus 60 seconds"
                ExpiresActive On
        </LocationMatch>
        <LocationMatch ^/debian/project/.*>
                ExpiresDefault "access plus 5 seconds"
                ExpiresActive On
        </LocationMatch>
        </IfModule>


I think this should cover many of the volatile files that change with the *same* name; please point out any more files/folders that don't match the above, or suggest alternate timings.

Are there any feeling for or against adding these headers? Is there a volunteer mirror site that would like to add this, please? ;)

  James

--
Mobile: +61 422 166 708, Email: james_AT_rcpt.to

Reply to: