2024-10-26 04:48:14 +08:00
|
|
|
RewriteEngine On
|
|
|
|
|
2024-11-06 05:00:14 +08:00
|
|
|
<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>
|
|
|
|
|
2024-10-26 04:48:14 +08:00
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
|
|
|
|
RewriteRule ^/?(.*) icon.php?icon=$1 [B]
|