# Varnish config for discourse

**URL:** https://meta.discourse.org/t/varnish-config-for-discourse/68575
**Category:** Self-hosting
**Tags:** hosting
**Created:** [23.Август.2017 01:27:50 UTC](https://meta.discourse.org/t/varnish-config-for-discourse/68575 "2017-08-23T01:27:50Z")
**Posts on this page:** 1
**Showing post:** 17

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [23.Август.2017 20:18:19 UTC](https://meta.discourse.org/t/varnish-config-for-discourse/68575/17 "2017-08-23T20:18:19Z")

</div>

Hmmm … no … we never cache any dynamic content. Any caching we do is done in the app.

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/9/79a52ba77c307b2f604f899bc1cbe2c4b5e986c5.png)

It is possible that a `vary` by `x-discourse-username` would allow us to cache for anon via headers. I never experimented with that implementation.

As it stands all dynamic requests like looking at this page hit the app.

---

_[View the full topic](https://meta.discourse.org/t/varnish-config-for-discourse/68575)._
