Class CacheControl


  • public class CacheControl
    extends Object
    A helper class for controlling Cache Control headers.
    Author:
    Sebastian Ɓaskawiec
    • Method Detail

      • noCache

        public static CacheControl noCache()
        Returns no-cache header value.
        Returns:
        no-cache header value.
      • maxAge

        public static CacheControl maxAge​(int timeInSeconds)
        Returns max-age header value.
        Parameters:
        timeInSeconds - Header value in seconds.
        Returns:
        max-age header value.
      • toString

        public String toString()