Enum Class WebResponse.CacheScope

java.lang.Object
java.lang.Enum<WebResponse.CacheScope>
org.apache.wicket.request.http.WebResponse.CacheScope
All Implemented Interfaces:
Serializable, Comparable<WebResponse.CacheScope>, Constable
Enclosing class:
WebResponse

caching scope for data

Unless the data is confidential, session-specific or user-specific the general advice is to prefer value PUBLIC for best network performance.

This value will basically affect the header [Cache-Control]. Details can be found here or in RFC-2616.

  • Enum Constant Details

    • PUBLIC

      public static final WebResponse.CacheScope PUBLIC
      use all caches (private + public)

      Use this value for caching if the data is not confidential or session-specific. It will allow public caches to cache the data. In some versions of Firefox this will enable caching of resources over SSL (details can be found here).

    • PRIVATE

      public static final WebResponse.CacheScope PRIVATE
      only use non-public caches

      Use this setting if the response is session-specific or confidential and you don't want it to be cached on public caches or proxies. On some versions of Firefox this will disable caching of any resources in over SSL connections.

  • Method Details

    • values

      public static WebResponse.CacheScope[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WebResponse.CacheScope valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null