diff options
author | mjfernez <mjf@mjfer.net> | 2022-02-20 14:29:37 -0500 |
---|---|---|
committer | mjfernez <mjf@mjfer.net> | 2022-02-20 14:29:37 -0500 |
commit | 43e114b82500476fa81754bf099ad25ee945201e (patch) | |
tree | 8980f538ad6324101282f3a04617972d6337703d /views.py | |
parent | 8db2c6905adf00878d5549cc7d5766745daf6dd9 (diff) | |
download | ezcms-43e114b82500476fa81754bf099ad25ee945201e.tar.gz |
Add caching fix from mjfer.net branch
Diffstat (limited to 'views.py')
-rw-r--r-- | views.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -99,7 +99,6 @@ def render_file(path): @app.route("/raw/<path:path>") -@cache.cached() def send_file_from_site(path): """ send_file_from_site - instead of rendering a file within a template @@ -115,7 +114,6 @@ def send_file_from_site(path): @app.route("/static/<path:path>") -@cache.cached() def send_file_from_static(path): """ send_file_from_static - send files from the static directory @@ -130,7 +128,6 @@ def send_file_from_static(path): @app.route("/feed.xml") -@cache.cached() def render_rss_feed(): context = { 'config': siteconfig.rss_channel_config, @@ -138,5 +135,7 @@ def render_rss_feed(): } feed = render_template("feed.xml", **context) response = make_response(feed) - response.headers['Content-Type'] = siteconfig.MIMETYPES.get(".xml") + response.headers['Content-Type'] = str( + siteconfig.MIMETYPES.get(".xml") + ) return response |