Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #186 from necaris/master

Adds documentation for cache-busting URL support with staticfiles
  • Loading branch information...
commit 771538420aa1ff369352851b472f4967de17a6f4 2 parents 38dea9c + 7d6c336
@cyberdelia authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 docs/usage.rst
View
9 docs/usage.rst
@@ -44,6 +44,15 @@ Then when you run ``collectstatic`` command, your CSS and your javascripts will
$ python manage.py collectstatic
+Cache-busting
+-------------
+
+Pipeline 1.2+ no longer provides its own cache-busting URL support (using e.g. the ``PIPELINE_VERSIONING`` setting) but uses
+Django's built-in staticfiles support for this. To set up cache-busting in conjunction with ``collectstatic`` as above, use ::
+
+ STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
+
+This will handle cache-busting just as ``staticfiles``'s built-in ``CachedStaticFilesStorage`` does.
Middleware
==========
Please sign in to comment.
Something went wrong with that request. Please try again.