Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6c859c

Browse files
domenicfoolip
authored andcommitted
Meta: fix commit snapshots server config
This makes URLs like https://html.spec.whatwg.org/commit-snapshots/920c9183a7990968ecac1aeedae22391f3438791 properly display as text/html. This regressed in f7def43 when we got rid of the global ForceType.
1 parent 4bf7b83 commit e6c859c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.htaccess

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ Redirect 301 /multipage/images/ /images/
99
Redirect 301 /multipage/link-fixup.js /link-fixup.js
1010
ErrorDocument 404 /404.html
1111

12-
<Files print.pdf>
12+
<Files "print.pdf">
1313
Header add Content-Disposition "inline; filename=html-standard.pdf"
1414
</Files>
1515

16+
<Files "commit-snapshots/*">
17+
ForceType text/html
18+
</Files>
19+
1620
# Previously-generated filenames for /multipage/ that do not redirect via script:
1721
Redirect 301 /multipage/embedded-content-0.html /multipage/embedded-content.html
1822
Redirect 301 /multipage/scripting-1.html /multipage/scripting.html

0 commit comments

Comments
 (0)