add_never_cache_headers
Add headers to a response to indicate that a page should never be cached.
def add_never_cache_headers(
response: HttpResponse
) - > void
Add headers to a response to indicate that a page should never be cached.
Parameters
| Name | Type | Description |
|---|---|---|
| response | HttpResponse | The HTTP response object to which the cache-prevention headers will be applied |
Returns
| Type | Description |
|---|---|
void | The function modifies the response object in-place and does not return a value. |