summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/narr/assets.rst2
-rw-r--r--docs/narr/environment.rst2
-rw-r--r--pyramid/interfaces.py2
-rw-r--r--pyramid/static.py6
4 files changed, 12 insertions, 0 deletions
diff --git a/docs/narr/assets.rst b/docs/narr/assets.rst
index 33677988d..95863848b 100644
--- a/docs/narr/assets.rst
+++ b/docs/narr/assets.rst
@@ -294,6 +294,8 @@ could be used.
Cache Busting
-------------
+.. versionadded:: 1.6
+
In order to maximize performance of a web application, you generally want to
limit the number of times a particular client requests the same static asset.
Ideally a client would cache a particular static asset "forever", requiring
diff --git a/docs/narr/environment.rst b/docs/narr/environment.rst
index a81ad19af..e1171d710 100644
--- a/docs/narr/environment.rst
+++ b/docs/narr/environment.rst
@@ -165,6 +165,8 @@ Prevent the ``cachebust`` static view configuration argument from having any
effect globally in this process when this value is true. No cache buster will
be configured or used when this is true.
+.. versionadded:: 1.6
+
.. seealso::
See also :ref:`cache_busting`.
diff --git a/pyramid/interfaces.py b/pyramid/interfaces.py
index 2b6ba7eb6..c5a70dbfd 100644
--- a/pyramid/interfaces.py
+++ b/pyramid/interfaces.py
@@ -1172,6 +1172,8 @@ class ICacheBuster(Interface):
a static asset, modifying a static asset URL to include a cache bust token,
and, optionally, unmodifying a static asset URL in order to look up an
asset. See :ref:`cache_busting`.
+
+ .. versionadded:: 1.6
"""
def token(pathspec):
"""
diff --git a/pyramid/static.py b/pyramid/static.py
index 5e017e1cd..c4a9e3cc4 100644
--- a/pyramid/static.py
+++ b/pyramid/static.py
@@ -198,6 +198,8 @@ class PathSegmentMd5CacheBuster(Md5AssetTokenGenerator):
inserts an md5 checksum token for cache busting in the path portion of an
asset URL. Generated md5 checksums are cached in order to speed up
subsequent calls.
+
+ .. versionadded:: 1.6
"""
def pregenerate(self, token, subpath, kw):
return (token,) + subpath, kw
@@ -214,6 +216,8 @@ class QueryStringMd5CacheBuster(Md5AssetTokenGenerator):
The optional ``param`` argument determines the name of the parameter added
to the query string and defaults to ``'x'``.
+
+ .. versionadded:: 1.6
"""
def __init__(self, param='x'):
super(QueryStringMd5CacheBuster, self).__init__()
@@ -237,6 +241,8 @@ class QueryStringConstantCacheBuster(QueryStringMd5CacheBuster):
The optional ``param`` argument determines the name of the parameter added
to the query string and defaults to ``'x'``.
+
+ .. versionadded:: 1.6
"""
def __init__(self, token, param='x'):
self._token = token