Skip to content
Myr

Merge pull request #527 from mapio/patch-1

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

cache_timeout should be always checked not Null

authored by Armin Ronacher · committed by Armin Ronacher · parents 9f05510, 4b21e2d · 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