antikythera v0.3.0 Antikythera.Plug.NoCache View Source

Plug to set a fixed value of cache-control response header in order to disable client side caching.

The value used is: "private, no-cache, no-store, max-age=0".

Usage

Put the following line in your controller module:

plug Antikythera.Plug.NoCache, :put_resp_header, []

Note that this plug runs before your controller's actions; in your actions you can overwrite the cache-control header set by this plug.

Link to this section Summary

Link to this section Functions