Options -Indexes

AddType application/json .json
AddType application/javascript .js
AddType text/html .html
AddType application/x-httpd-php .php

<IfModule mod_headers.c>

    <FilesMatch "\.json$">
        Header set Content-Type "application/json; charset=utf-8"
        Header set X-Test-Origin "static-json-origin"
        Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
        Header set Pragma "no-cache"
    </FilesMatch>

    <FilesMatch "\.js$">
        Header set Content-Type "application/javascript; charset=utf-8"
        Header set X-Test-Origin "static-js-origin"
        Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
        Header set Pragma "no-cache"
    </FilesMatch>

    <FilesMatch "\.html$">
        Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
        Header set Pragma "no-cache"
    </FilesMatch>

</IfModule>
