Question

What is the difference between these two lines?

ExpiresByType application/javascript "access plus 1 year"
ExpiresByType application/javascript "access 1 year"

Do they mean the same thing?

Was it helpful?

Solution

According to the mod_expires manual:

The ExpiresDefault and ExpiresByType directives can also be defined in a more readable syntax of the form:

ExpiresDefault "base [plus num type] [num type] ..."
ExpiresByType type/encoding "base [plus num type] [num type] ..."

where base is one of:

  • access
  • now (equivalent to 'access')
  • modification

The plus keyword is optional. num should be an integer value [acceptable to atoi()], and type is one of:

  • years
  • months
  • weeks
  • days
  • hours
  • minutes
  • second

So no - there's no difference.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top