Skip to content

zakzou/flask_httpcaching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-HttpCaching

http caching

install

easy_install flask_httpcaching

pip install flask_httpcaching

Usage

# -*- coding: utf-8 -*-

from flask import Flask
from flask.ext.httpcaching import http_caching


app = Flask(__name__)

@app.route("/")
@http_caching(timeout=300, expires=20)
def home():
    return "home"


if __name__ == '__main__':
    app.run()

About

http cache extension for flask

Resources

License

Stars

Watchers

Forks

Packages

No packages published