diff options
author | mjfernez <mjf@mjfer.net> | 2022-02-20 14:25:28 -0500 |
---|---|---|
committer | mjfernez <mjf@mjfer.net> | 2022-02-20 14:25:28 -0500 |
commit | dc98898dea798a1f2902a20aa340e0aa7aee48a9 (patch) | |
tree | 71f227972975f0f981f8e2376e710088cb950c25 | |
parent | 40972ab6b9727e41a88e088eced77daffb1a0f42 (diff) | |
download | ezcms-dc98898dea798a1f2902a20aa340e0aa7aee48a9.tar.gz |
Remove caching for raw file types
m--------- | templates/site | 0 | ||||
-rw-r--r-- | views.py | 7 |
2 files changed, 3 insertions, 4 deletions
diff --git a/templates/site b/templates/site -Subproject 6449dff4157f01551d55cc12585db9de9875ea6 +Subproject 82c2c085f877f6dca63d847bd2599abeebf7693 @@ -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 |