set no-cache for feeds page

Hopefully prevents AJAX results from being discarded when clicking the
back button
This commit is contained in:
Kyle Mahan 2015-08-04 08:34:08 -07:00
parent 3a4a71d225
commit 9a0cdb6925

View file

@ -80,9 +80,12 @@ def index():
entries.append(entry)
entries = dedupe_copies(entries)
return flask.render_template('feed.jinja2', entries=entries, page=page,
ws_topic=ws_topic, solo=solo,
all_tags=all_tags)
resp = flask.make_response(
flask.render_template('feed.jinja2', entries=entries, page=page,
ws_topic=ws_topic, solo=solo,
all_tags=all_tags))
resp.headers['Cache-control'] = 'no-cache'
return resp
@views.route('/install')