diff --git a/flask_images/core.py b/flask_images/core.py index 8682604..16a4cb4 100755 --- a/flask_images/core.py +++ b/flask_images/core.py @@ -429,7 +429,7 @@ def handle_request(self, path): image.save(cache_file, format, quality=quality) cache_file.close() - return send_file(cache_path, mimetype=mimetype, cache_timeout=cache_timeout) + return send_file(cache_path, mimetype=mimetype, max_age=cache_timeout) diff --git a/setup.py b/setup.py index 453a02f..ebbe653 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='Flask-Images', - version='3.0.2', + version='3.0.3', description='Dynamic image resizing for Flask.', url='http://github.com/mikeboers/Flask-Images',