Wire in nginx's proxy cache directives.
dokku plugin:install https://github.com/Aluxian/dokku-nginx-cache.git nginx-cache
Enable nginx request caching
$ dokku nginx:cache:enable myapp
Disable nginx request caching
$ dokku nginx:cache:disable myapp
Currently there are no configuration options. However, Nginx does obey a number of caching- and X-Accel-*-related headers.
Snippet from nginx docs:
X-Accel-Expires,Expires,Cache-Control,Set-Cookie, andVaryset the parameters of response caching;X-Accel-Redirectperforms an internal redirect to the specified URI;X-Accel-Limit-Ratesets the rate limit for transmission of a response to a client;X-Accel-Bufferingenables or disables buffering of a response;X-Accel-Charsetsets the desired charset of a response.