# Apache 2.2
<IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    <FilesMatch "\.(css|gif|jpe?g|png|svg)$">
        Allow from all
    </FilesMatch>
</IfModule>

# Apache 2.4
<IfModule mod_authz_core.c>
    Require all denied
    <FilesMatch "\.(css|gif|jpe?g|png|svg)$">
        Require all granted
    </FilesMatch>
</IfModule>

<IfModule mod_headers.c>
    <FilesMatch "\.(png|gif|jpe?g|svg)$">
        Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
        Header set Pragma "no-cache"
    </FilesMatch>
</IfModule>