Skip to content
Myr

I think it should check that cache_timeout is not None to allow for a (I hope legale) value of 0 for such parameter.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Massimo Santini · committed by Massimo Santini · parent 9f05510 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/helpers.py+1 added-1 removed
531 unmodified lines
532533 rv.cache_control.public = True534 if cache_timeout is None:535 cache_timeout = current_app.get_send_file_max_age(filename)536 if cache_timeout:536 if cache_timeout is not None:537 rv.cache_control.max_age = cache_timeout538 rv.expires = int(time() + cache_timeout)539540 if add_etags and filename is not None:
294 unmodified lines