PDA

View Full Version : Overseas Caching? Where is server?


wf
06-08-2004, 10:08 PM
Hi:

Two questions. First, does anyone know how I can find out where my server is physically located? Based on the local time displayed from the server, it seems like it must be in Europe somewhere. I'm in the western United States. So here's my second question. I'm having a lot of problems developing with the server because when I update a JSP page, the server seems to compile the new page, but browsers keep displaying outdated pages. I've tried everything - restarting Tomcat, browsing with both Explorer and Netscape, clearing browser caches, restarting browsers, plus the following:

<% response.setHeader("Pragma","no-cache");%>
<% response.setHeader("Cache-Control","no-store");%>
<% response.setDateHeader("Expires",-1);%>

I'm wondering that if it's true the server is in Europe, maybe there's some kind of intermediate caching on the internet so the query doesn't have to go all the way across the ocean each time.

Thanks.

arthur
06-09-2004, 10:19 PM
Hi,
1. if you go to http://www.dnsstuff.com/ and down to 'NetGeo IP Lookup' then enter the IP address you wish to check it will show you the geographical location of that IP address.
2. Caching - have you checked that your browsers and/or ISP is not using a proxy cache? You may wish to try changing the refresh rates for the domain/address on your BIND DNS servers, if it is to long that might cause that problem. (If you do change them, remember to change them back again later as it could cause excessive load on the server).

Hope that helps,

Arthur

retep
06-09-2004, 10:25 PM
Hi. The locations of the data centers we use are described here: http://rimuhosting.com/datacenters.jsp. A traceroute yourip should help narrow things down.

I'm not sure why you're having the caching problem. You may be behind a proxy server doing the caching, but it should not cache the page if you're setting those headers.

If you need individual help, do pop in a support ticket and we'll take care of it for you. Then we'll have your server details, and if you'd provide a URL to check that caching problem we can sort the problem out for you.

wf
06-10-2004, 07:34 AM
Thanks for the help guys. Turns out Tomcat wasn't recompiling the JSPs. (Though it appears the server is configured properly for recompiling JSPs on every hit to the page.) Someone on another forum (www.javaranch.com) suggested manually deleting the JSP class files and java files to force the server to recompile the JSPs. It's a pain, but it works.

Thanks again.