diff options
| author | Michael Merickel <michael@merickel.org> | 2016-01-03 00:22:44 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2016-01-03 00:23:06 -0600 |
| commit | 2901e968390f70b4bfa777dd4348dc9d3eb6210c (patch) | |
| tree | d60e1e31ab25e8b83e30df247410f6714a962f8c /docs | |
| parent | 99ab0b5a97a1abf3d693207d096738e0c4e72e0e (diff) | |
| download | pyramid-2901e968390f70b4bfa777dd4348dc9d3eb6210c.tar.gz pyramid-2901e968390f70b4bfa777dd4348dc9d3eb6210c.tar.bz2 pyramid-2901e968390f70b4bfa777dd4348dc9d3eb6210c.zip | |
add a note about serving cache busted assets
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/assets.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/narr/assets.rst b/docs/narr/assets.rst index 054c58247..58f547fc9 100644 --- a/docs/narr/assets.rst +++ b/docs/narr/assets.rst @@ -532,6 +532,14 @@ The following code would set up a cachebuster: 'mypackage:static/', ManifestCacheBuster('myapp:static/manifest.json')) +It's important to note that the cache buster only handles generating +cache-busted URLs for static assets. It does **NOT** provide any solutions for +serving those assets. For example, if you generated a URL for +``css/main-678b7c80.css`` then that URL needs to be valid either by +configuring ``add_static_view`` properly to point to the location of the files +or some other mechanism such as the files existing on your CDN or rewriting +the incoming URL to remove the cache bust tokens. + .. index:: single: static assets view |
