Wednesday, September 28, 2016

Cache-Control header for Flat Pages

Hi,

We are using Django Flat pages for some static pages like About us, privacy policy etc. We are using Web Accelerator (like Varnish) in front of Django. Hence, would like to set the Cache-Control Header to cache the flat pages. I am not able to figure how to do that for flat pages.

Tried using the middleware UpdateCacheMiddleware but it's not working. Would really appreciate if someone could throw some light.

Thanks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/38b38234-21bf-487a-9497-8120f7699513%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment