0

I would like to gzip my static assets to s3 with the Gzip and s3 mixins from django storages, and serve the gzipped files with the static/compressed template tag. Is this possible? I don't see information in the docs or online on serving compressed versions.

TylerH
  • 20,799
  • 66
  • 75
  • 101
bwarren2
  • 1,347
  • 1
  • 18
  • 36

1 Answers1

1

Yes this is possible. See the docs on Gzip compression and the following section.

https://django-pipeline.readthedocs.org/en/latest/storages.html#gzip-compression

Also see this question: django-pipeline with s3 storage is not compressing my js

Community
  • 1
  • 1
John Lehmann
  • 7,975
  • 4
  • 58
  • 71