Httpd configuration for including expire times in response http header
- First, you need to compile httpd using --enable-expires option. Then it's compiled with expire module built-in your httpd binary(You can check it like, > httpd -l).
- Second, configuration file should include following setting.
ExpiresActive On
ExpireByType image/gif A25920000
ExpireByType image/png A25920000
ExpireByType image/jpg A25920000
ExpireByType image/jpeg A25920000
This means image file has its expire time as 2592000 seconds later (one month from now) - Now, you can check whether expire information is included in the response header like below
No comments:
Post a Comment