Multiple choice technology web technology

The numeric value provided to the body of the expiration cache tag is in which measurement <expiration-cache>10</expiration-cache>

  1. milliseconds

  2. seconds

  3. hours

  4. days

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The numeric value in the expiration-cache tag is measured in seconds. An expiration-cache value of 10 means the portlet output is cached for 10 seconds before regenerating. This is the standard unit for cache expiration in the JSR168 portlet specification.

AI explanation

The value in an element is expressed in seconds. Cache time-to-live / expiration settings across virtually all caching frameworks (HTTP Cache-Control max-age, ASP.NET OutputCache Duration, Ehcache/JCache TTL, CloudFront, etc.) default to a numeric value denominated in seconds unless a unit is explicitly stated. So 10 means the entry expires after 10 seconds. Milliseconds, hours, and days are not the standard denomination for such a bare integer, so 'seconds' is the correct interpretation. The marked answer 'seconds' is right.