Wire in nginx's proxy cache directives.
Shell
Pull request Compare This branch is 12 commits ahead of rummik:master.
Latest commit 9b6d518 Apr 29, 2016 Alexandru Rosianu On :disable, check if enabled
Permalink
Failed to load latest commit information.
commands On :disable, check if enabled Apr 29, 2016
nginx-pre-reload makes nginx-pre-reload executable Apr 28, 2016
plugin.toml Update to dokku 0.5 Apr 25, 2016
readme.md Update to dokku 0.5 Apr 25, 2016

readme.md

dokku-nginx-cache

Wire in nginx's proxy cache directives.

Install

dokku plugin:install https://github.com/Aluxian/dokku-nginx-cache.git nginx-cache

Quick start

Enable nginx request caching

$ dokku nginx:cache:enable myapp

Disable nginx request caching

$ dokku nginx:cache:disable myapp

Configuration

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, and Vary set the parameters of response caching;
  • X-Accel-Redirect performs an internal redirect to the specified URI;
  • X-Accel-Limit-Rate sets the rate limit for transmission of a response to a client;
  • X-Accel-Buffering enables or disables buffering of a response;
  • X-Accel-Charset sets the desired charset of a response.