---
title: Charmhub | Deploy Content-cache using Charmhub - The Open Operator Collection
description: Deploy the latest version of Content-cache as a Kubernetes Operator on
  any cloud.
url: https://charmhub.io/content-cache-k8s/configurations
---

# Content-cache

[Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

* [Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

Platform:

stable 49

```
juju deploy content-cache-k8s
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [backend](https://charmhub.io/content-cache-k8s/configurations#backend)
* [backend\_site\_name](https://charmhub.io/content-cache-k8s/configurations#backend_site_name)
* [cache\_all](https://charmhub.io/content-cache-k8s/configurations#cache_all)
* [cache\_inactive\_time](https://charmhub.io/content-cache-k8s/configurations#cache_inactive_time)
* [cache\_max\_size](https://charmhub.io/content-cache-k8s/configurations#cache_max_size)
* [cache\_use\_stale](https://charmhub.io/content-cache-k8s/configurations#cache_use_stale)
* [cache\_valid](https://charmhub.io/content-cache-k8s/configurations#cache_valid)
* [client\_max\_body\_size](https://charmhub.io/content-cache-k8s/configurations#client_max_body_size)
* [site](https://charmhub.io/content-cache-k8s/configurations#site)
* [tls\_secret\_name](https://charmhub.io/content-cache-k8s/configurations#tls_secret_name)

[Learn about configurations >](https://juju.is/docs/juju/configuration#heading--application-configuration)

* backend | string

  Required if no nginx-proxy relation is established. The backend to use for site, e.g. "http://mybackend.local:80".
* backend\_site\_name | string

  Backend site name, e.g. mybackend.local. If none given, will work out from the configured 'backend' config above.
* cache\_all | boolean

  By default, we respect upstream cache headers (Cache-Control and Expires). This overrides that and enables caching even if upstream tells us not to. WARNING: It won't cache when Vary: \* and Set-Cookies headers are sent in the responses. This option overrides the backend cache time instructions (Expires or max-age) by setting a cache time to 1h (which could be less than the caching instructed by the backend)
* cache\_inactive\_time | string

  Default: 10m

  The maximum age/time inactive objects are stored in cache.
* cache\_max\_size | string

  Default: 10G

  The size of the Nginx storage cache.
* cache\_use\_stale | string

  Default: error timeout updating http\_500 http\_502 http\_503 http\_504

  Determines in which cases a stale cached response can be used during communication with the proxied server.
* cache\_valid | string

  Default: 200 1h

  Sets caching time for different response codes.
* client\_max\_body\_size | string

  Default: 1m

  Override max. request body size (default 1m).
* site | string

  Required if no nginx-proxy relation is established. The site name, e.g. "mysite.local". If the backend is set and this option is empty then the site will default to the application name.
* tls\_secret\_name | string

  The name of the K8s secret to be associated with the ingress resource.
