I tested Chrome (linux and windows), Firefox and Opera.
Every time I do pushState, Chrome goes to the server. It does not seem to use the request in any way, I noticed this only because I was looking at the log file.
Here is the request:
16 Mar 2013 01:00 PM ip=127.0.0.1 agent=Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22 uri=/ T1=0ms T2=0ms T3=0ms
Here is the line of code:
history.pushState({}, 'my_app', URL);
I know the URI says '/', but that is not even the URL that is being called.
Firefox and Opera do not, and it seems to me the wrong behavior. Is there a mistake?
I worry about scaling. I do not want users to make dummy requests when they view my application.
source share