-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathhtaccess
57 lines (48 loc) · 1.29 KB
/
htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE"
Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept"
</IfModule>
<FilesMatch "\.(html|php|js|css)$">
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "0"
</FilesMatch>
# JavaScript files
AddType application/javascript .js
# CSS files
AddType text/css .css
# JSON files
AddType application/json .json
# HTML files
AddType text/html .html .htm
# Images
AddType image/jpeg .jpeg .jpg
AddType image/png .png
AddType image/gif .gif
AddType image/svg+xml .svg
AddType image/webp .webp
# Fonts
AddType font/woff .woff
AddType font/woff2 .woff2
AddType application/font-woff .woff
AddType application/font-woff2 .woff2
AddType font/ttf .ttf
AddType font/otf .otf
# Videos
AddType video/mp4 .mp4
AddType video/webm .webm
AddType video/ogg .ogv
# Audio
AddType audio/mpeg .mp3
AddType audio/ogg .ogg
# Documents
AddType application/pdf .pdf
AddType application/zip .zip
AddType application/x-rar-compressed .rar
# Other
AddType text/plain .txt
AddType application/x-shockwave-flash .swf
AddType application/x-javascript .js
Options -Indexes
autoindex off;