View Source Antikythera.Plug.NoCache (antikythera v0.5.1)

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.

Summary

Functions

Link to this function

put_resp_header(conn, opts)

View Source
@spec put_resp_header(Antikythera.Conn.t(), any()) :: Antikythera.Conn.t()