Class/Object

controllers

AssetsConfiguration

Related Docs: object AssetsConfiguration | package controllers

Permalink

case class AssetsConfiguration(path: String = "/public", urlPrefix: String = "/assets", defaultCharSet: String = "utf-8", enableCaching: Boolean = true, enableCacheControl: Boolean = false, configuredCacheControl: Map[String, Option[String]] = Map.empty, defaultCacheControl: String = "public, max-age=3600", aggressiveCacheControl: String = ..., digestAlgorithm: String = "md5", checkForMinified: Boolean = true, textContentTypes: Set[String] = ..., encodings: Seq[AssetEncoding] = ...) extends Product with Serializable

Source
Assets.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AssetsConfiguration
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AssetsConfiguration(path: String = "/public", urlPrefix: String = "/assets", defaultCharSet: String = "utf-8", enableCaching: Boolean = true, enableCacheControl: Boolean = false, configuredCacheControl: Map[String, Option[String]] = Map.empty, defaultCacheControl: String = "public, max-age=3600", aggressiveCacheControl: String = ..., digestAlgorithm: String = "md5", checkForMinified: Boolean = true, textContentTypes: Set[String] = ..., encodings: Seq[AssetEncoding] = ...)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val aggressiveCacheControl: String

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val checkForMinified: Boolean

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val configuredCacheControl: Map[String, Option[String]]

    Permalink
  9. val defaultCacheControl: String

    Permalink
  10. val defaultCharSet: String

    Permalink
  11. val digestAlgorithm: String

    Permalink
  12. val enableCacheControl: Boolean

    Permalink
  13. val enableCaching: Boolean

    Permalink
  14. val encodings: Seq[AssetEncoding]

    Permalink
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def findConfiguredCacheControl(assetName: String): Option[String]

    Permalink

    Finds the configured Cache-Control directive that needs to be applied to the asset with the given name.

    Finds the configured Cache-Control directive that needs to be applied to the asset with the given name.

    This will try to find the most specific directive configured for the asset. For example, given the following configuration:

    "play.assets.cache./public/css"="max-age=100"
    "play.assets.cache./public/javascript"="max-age=200"
    "play.assets.cache./public/javascript/main.js"="max-age=300"

    Given asset name "/public/css/main.css", it will find "max-age=100".

    Given asset name "/public/javascript/other.js" it will find "max-age=200".

    Given asset name "/public/javascript/main.js" it will find "max-age=300".

    Given asset name "/public/images/img.png" it will use the defaultCacheControl since there is no specific directive configured for this asset.

    assetName

    the asset name

    returns

    the optional configured cache-control directive.

  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. val path: String

    Permalink
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. val textContentTypes: Set[String]

    Permalink
  26. val urlPrefix: String

    Permalink
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped