Skip to content

Commit

Permalink
Meta: fix commit snapshots server config
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
domenic authored and foolip committed Oct 5, 2016
1 parent 4bf7b83 commit e6c859c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ Redirect 301 /multipage/images/ /images/
Redirect 301 /multipage/link-fixup.js /link-fixup.js
ErrorDocument 404 /404.html

<Files print.pdf>
<Files "print.pdf">
Header add Content-Disposition "inline; filename=html-standard.pdf"
</Files>

<Files "commit-snapshots/*">
ForceType text/html
</Files>

# Previously-generated filenames for /multipage/ that do not redirect via script:
Redirect 301 /multipage/embedded-content-0.html /multipage/embedded-content.html
Redirect 301 /multipage/scripting-1.html /multipage/scripting.html
Expand Down

0 comments on commit e6c859c

Please sign in to comment.