Commit [574e4a]  Maximize  Restore  History

[#6942] Fix App.icon_url(), add ETag caching

- Icon resource lookup needed MRO search to work properly with
"inherited" static resources. Moved that logic out into
App.has_resource() so it could be used by the EW resource
registration code in config/resource.py.

- Added ETag caching for the new tool_icon_css so we get some
browser caching. Unfortunately we can only cache it for the life
of the server process since we can't tell if new tools have
been added since the last server start.

- While adding ETag caching I noticed that other app-served files
(like user and project icons) were not being cached by the browser,
so I added caching for them too.

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>

Tim Van Steenburgh Tim Van Steenburgh 2013-12-13

changed Allura/allura/app.py
changed Allura/allura/config/resources.py
changed Allura/allura/controllers/static.py
changed Allura/allura/lib/app_globals.py
changed Allura/allura/lib/utils.py
Allura/allura/app.py Diff Switch to side-by-side view
Loading...
Allura/allura/config/resources.py Diff Switch to side-by-side view
Loading...
Allura/allura/controllers/static.py Diff Switch to side-by-side view
Loading...
Allura/allura/lib/app_globals.py Diff Switch to side-by-side view
Loading...
Allura/allura/lib/utils.py Diff Switch to side-by-side view
Loading...