Skip to content
This repository has been archived by the owner on May 20, 2021. It is now read-only.

Cache-Control headers #48

Open
ukch opened this issue Feb 21, 2016 · 3 comments
Open

Cache-Control headers #48

ukch opened this issue Feb 21, 2016 · 3 comments

Comments

@ukch
Copy link

ukch commented Feb 21, 2016

I can't see anything in the documentation about whether it's possible to set cache-control headers on the returned files. If such a thing were possible, it would be great!

@theskumar
Copy link

I feel this is something that need to be addressed in the static library first before it can be added to dj-static. See lukearno/static#5 for further details.

This would definitely be a nice addition.

@ukch you might want to look into whitenoise library that can handle gzip and cache-control as well.

@lukearno
Copy link

It may already do what you want.

https://github.com/lukearno/static/blob/master/static/apps.py#L111

Luke

On Mon, Mar 14, 2016 at 3:44 AM, Saurabh Kumar notifications@github.com
wrote:

I feel this is something that need to be addressed in the static library
first before it can be added to dj-static. See lukearno/static#5
lukearno/static#5 for further details.

This would definitely be a nice addition.

@ukch https://github.com/ukch you might want to look into whitenoise
library that can handle gzip and cache-control as well.


Reply to this email directly or view it on GitHub
#48 (comment)
.

@kennethreitz
Copy link
Contributor

WhiteNoise does this, FYI.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants