Expires header not set for images as designated in .htaccess

Hi! I am using Laravel 5.2 and Apache 2.4. I have created an .htaccess file in the /public/images directory (where I store images) with the following contents:

Header unset ETag
FileETag None

ExpiresActive On
ExpiresDefault "access plus 2 days"

ExpiresByType image/gif "access plus 2 days" 

ExpiresByType image/png "access plus 2 days" 

ExpiresByType image/jpg "access plus 2 days" 

in order to disable ETag and enable image caching through the "Expires" header, but it seems that no such header is generated. I have checked this .htaccess to another dummy site and it works! So, I suppose it is not a fault of the htaccess file itself.

Any ideas?

agougousis
agougousis
  • 1 week ago