Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

/new handler redirect cached by browser #4082

Closed
Carreau opened this issue Aug 21, 2013 · 2 comments
Closed

/new handler redirect cached by browser #4082

Carreau opened this issue Aug 21, 2013 · 2 comments
Milestone

Comments

@Carreau
Copy link
Member

Carreau commented Aug 21, 2013

On ipython dashboard, first create a new notebook, then create a second new notebook. On the second creation, an other view of the first created notebook is obtained. It is suspected that the browser caches the redirection at the second time.

Written by parleur using carreau's loggin

on linux (fedora 18), and firefox 23.0

check if the redirect code is 307 or 302

@Carreau
Copy link
Member Author

Carreau commented Aug 21, 2013

Notebook NewHandler send a 302 (Found) instead of 307 (Temporary Redirect)

$ curl http://localhost:8888/new -v
* About to connect() to localhost port 8888 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8888 (#0)
> GET /new HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: localhost:8888
> Accept: */*
>
< HTTP/1.1 302 Found
< Date: Wed, 21 Aug 2013 17:02:59 GMT
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
< Location: /8e9049ba-6f2a-4707-8961-18818cd305a7
< Server: TornadoServer/3.0.1
< Set-Cookie: username-localhost-8888=; expires=Tue, 21 Aug 2012 17:02:59 GMT; Path=/
<
* Connection #0 to host localhost left intact
* Closing connection #0

@ellisonbg
Copy link
Member

Should be fixed in master as /new is not a get request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants