Forums

Flask server reloads static page by itself

Hi all,

I've set up a small flask app to serve a static website, but that the page is being reloaded every 10secs by itself.

The script is as basic as this

from flask import Flask, render_template

app = Flask(__name__)

@app.route('/')
def homeHandler():
    return render_template('index.html')

What am I doing wrong? Thanks a lot

It's not Flask. It's either something in your page, (like a meta header or Javascript) or it's something in your browser (like an extension)

Spotted, thanks. I had a browser extension causing the issue :)