public class

CacheControl

extends Object
java.lang.Object
   ↳ com.atlassian.jira.rest.api.http.CacheControl

Class Overview

Contains some static definitions for caching that may be useful to REST endpoints

Summary

Public Methods
static CacheControl forever()
Returns a CacheControl with a 1 year limit.
static CacheControl never()
Returns a CacheControl with noStore and noCache set to true.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static CacheControl forever ()

Returns a CacheControl with a 1 year limit. Effectively forever.

Returns
  • a CacheControl

public static CacheControl never ()

Returns a CacheControl with noStore and noCache set to true.

Returns
  • a CacheControl