mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-13 11:35:45 +00:00
Adding SEND_FILE_MAX_AGE_DEFAULT to ensure backups etc dont get old
This commit is contained in:
@@ -46,6 +46,7 @@ update_q = queue.Queue()
|
|||||||
|
|
||||||
app = Flask(__name__, static_url_path='/static')
|
app = Flask(__name__, static_url_path='/static')
|
||||||
app.config['STATIC_RESOURCES'] = "/app/static"
|
app.config['STATIC_RESOURCES'] = "/app/static"
|
||||||
|
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0
|
||||||
|
|
||||||
# app.config['SECRET_KEY'] = 'secret!'
|
# app.config['SECRET_KEY'] = 'secret!'
|
||||||
|
|
||||||
|
|||||||
@@ -34,8 +34,9 @@ class perform_site_check():
|
|||||||
os.mkdir(self.output_path)
|
os.mkdir(self.output_path)
|
||||||
|
|
||||||
def save_response_html_output(self, output):
|
def save_response_html_output(self, output):
|
||||||
# @todo maybe record a history.json, [timestamp, md5, filename]
|
|
||||||
with open("{}/{}.txt".format(self.output_path, self.timestamp), 'w') as f:
|
# @todo Saving the original HTML can be very large, better to set as an option, these files could be important to some.
|
||||||
|
with open("{}/{}.html".format(self.output_path, self.timestamp), 'w') as f:
|
||||||
f.write(output)
|
f.write(output)
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user