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?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community