문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top