Skip to content

Make the whatwg.org/images redirect a 302 #66

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jan 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion debian/marquee/nginx/sites/whatwg.org.conf
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ server {
return 301 https://whatwg.org/;
}
location ~ ^/images(/(.*))?$ {
return 301 https://images.whatwg.org/$2;
return 302 https://images.whatwg.org/$2;
}
location = /link-fixup.js {
return 301 https://html.spec.whatwg.org/multipage/link-fixup.js;
Expand Down
4 changes: 2 additions & 2 deletions test/redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ const HTTPS_TESTS = [
['https://whatwg.org/google2569a0eb653e4cf1.html', 301, 'https://whatwg.org/'],
['https://whatwg.org/html', 301, 'https://html.spec.whatwg.org/multipage/', 'keep'],
['https://whatwg.org/html5', 301, 'https://html.spec.whatwg.org/multipage/', 'keep'],
['https://whatwg.org/images', 301, 'https://images.whatwg.org/'],
['https://whatwg.org/images/', 301, 'https://images.whatwg.org/', 'keep'],
['https://whatwg.org/images', 302, 'https://images.whatwg.org/'],
['https://whatwg.org/images/', 302, 'https://images.whatwg.org/', 'keep'],
['https://whatwg.org/issues', 410],
['https://whatwg.org/j', 301, 'https://javascript.spec.whatwg.org/'],
['https://whatwg.org/javascript', 301, 'https://javascript.spec.whatwg.org/'],
Expand Down