set no-cache for feeds page
Hopefully prevents AJAX results from being discarded when clicking the back button
This commit is contained in:
parent
3a4a71d225
commit
9a0cdb6925
1 changed files with 6 additions and 3 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue