net/http: Server is sending 304 even if it is running in a different directory #42051
Comments
By content i mean directory listing. |
can't reproduce, sounds more like a browser problem though? |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No sure.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I have this program,
I compiled and ran it on my home directory. I went to web browser and visited localhost:8000. I then stopped the program and ran it inside a directory of home directory. when i refresh the browser window i don't see that directory's content. I still see the previous directory. The server is still sending
304
. It requires to disable cache to see the content of the directory where the server is currently running.What did you expect to see?
The server will send the content where it is currently running.
What did you see instead?
It is sending content of the directory where the server was previously running and status code
304
The text was updated successfully, but these errors were encountered: