1
I have read about SPA (single page application) and learned that biggest advantage of those is that save network traffic because SPA downloads all (at least most of them) application resources when loading the page.
But I am not clear on this - suppose in my index.jsp
I have specified all my resources and downloaded when loading index.jsp
. Now my application navigation starts from index.jsp
, so for navigation I submit my form and which has action="user.jsp"
Now, since I have action="user.jsp"
so on submitting the form my web browser will send a request to server to get user.jsp
. Please correct me if I am wrong. Or will be taken from HTTP cache. But lets say through some Apache setting (I have read somewhere that it is possible but don't know how to do it) I have disabled the HTTP caching of web page then user.jsp
will be downloaded from server.
Much appreciated if somebody can throw good insight on it. Basically I am confused with the fact that action="user.jsp"
will lead a call to server and HTTP/browser can cache web pages.