Skip to content

Commit

Permalink
feat: add http response compression
Browse files Browse the repository at this point in the history
  • Loading branch information
pdmnyberg committed May 7, 2024
1 parent 3674c8c commit 93c6db6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import frontmatter
import markdown
from markdown.extensions.toc import TocExtension
from flask_compress import Compress


logger = logging.getLogger(__name__)
Expand All @@ -23,6 +24,7 @@
static_folder="static"
)
app.secret_key = "myverysecretkey"
Compress(app)


@app.route('/')
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ openpyxl==3.1.2
pandas==2.2.2
python-frontmatter==1.1.0
gunicorn==21.2.0
flask-compress==1.15

0 comments on commit 93c6db6

Please sign in to comment.