casatt/muskepeer-client/master/src/.htaccess - Htaccess File

casatt/muskepeer-client/master/src/.htaccess

#DISABLCE CACHE
<FilesMatch ".(html|htm|js|css)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</FilesMatch>

# HSTS
Header add Strict-Transport-Security: "max-age=15768000;includeSubdomains"

# CORS
Header always set Access-Control-Allow-Origin "*"                   
Header always set Access-Control-Allow-Methods "POST, GET, PUT, OPTIONS, PATCH, DELETE" 
Header always set Access-Control-Allow-Headers "X-Accept-Charset,X-Accept,Content-Type"
RewriteEngine On                  
RewriteCond %{REQUEST_METHOD} OPTIONS 
RewriteRule ^(.*)$ $1 [R=200,L,E=HTTP_ORIGIN:%{HTTP:ORIGIN}]]

RewriteEngine On

# FORCE HTTPS
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]

On Github License

Files

Download PDF of Htaccess file
CACHE, GET, HTTP_HOST, HTTPS, no-cache, ORIGIN, POST, Pragma, PUT, REQUEST_METHOD, SERVER_PORT

Comments

Apache