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] = ...)

Value Members

  1. val aggressiveCacheControl: String
  2. val checkForMinified: Boolean
  3. val configuredCacheControl: Map[String, Option[String]]
  4. val defaultCacheControl: String
  5. val defaultCharSet: String
  6. val digestAlgorithm: String
  7. val enableCacheControl: Boolean
  8. val enableCaching: Boolean
  9. val encodings: Seq[AssetEncoding]
  10. final def findConfiguredCacheControl(assetName: String): Option[String]

    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.

  11. val path: String
  12. val textContentTypes: Set[String]
  13. val urlPrefix: String