# Allow image files only
Order Allow,Deny
Allow from all
# Deny access to PHP files
Order Deny,Allow
Deny from all
# Prevent directory listing
Options -Indexes
# Enable image caching
ExpiresActive On
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"