21 lines
514 B
ApacheConf
21 lines
514 B
ApacheConf
RewriteEngine On
|
|
|
|
<FilesMatch \.(json|svg)$>
|
|
<IfModule mod_headers.c>
|
|
Header set Access-Control-Allow-Origin "*"
|
|
Header set Access-Control-Allow-Methods "POST, GET, OPTIONS"
|
|
</IfModule>
|
|
</FilesMatch>
|
|
|
|
<FilesMatch \.json$>
|
|
<IfModule mod_headers.c>
|
|
Header set Cache-Control "no-cache, no-store, must-revalidate"
|
|
Header set Pragma "no-cache"
|
|
Header set Expires 0
|
|
</IfModule>
|
|
</FilesMatch>
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteRule ^/?(.*) icon.php?icon=$1 [B] |