[PATCH 1/9] settings: Help caching with content-aware static file names

Finucane, Stephen stephen.finucane at intel.com
Fri Apr 1 23:25:38 AEDT 2016

On 30 Mar 22:04, Stephen Finucane wrote:
> From: Damien Lespiau <damien.lespiau at intel.com>
> If we always serve the "style.css" file, even when its content changes,
> we run into the situation where the browser (or any HTTP aware middle
> man) will cache the file and not download a newer version.
> This can be solved by appending the file hash to its filename. If the
> content changes, the file name changes and the new version is used right
> away. We can also use far future Expires headers with such static files,
> they will really never change.
> Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
> Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
> ---
> v2: Disable for Django < 1.7


More information about the Patchwork mailing list