HTML changes are not reflected while I use a proxy server

I switched from Eclipse to Jdeveloper. I had a strange problem that I could solve, but could not understand.

Whenever I made any changes to HTML in Jdeveloper web projects, the changes were not reflected when the HTML was re-run. Old web pages continued to flow into the web browser. The same source code. Same CSS / JS. I found that as long as my browser had proxy settings, the changes were not reflected. But if I turned off proxies, the changes made to HTML were reflected. The web page was displayed with the changes made for the last time.

By proxy set, I mean the proxy server settings located on the following Window → Start menu → Internet settings → Connections → LAN settings → Proxy server

I tried to run the resulting URL in Google Chrome, Firefox, and Internet explorer. While the web browser was using proxies, changes made to the HTML were not shown, starting it again.

In Eclipse Juno, I just needed to clear the Tomcat directory to display the changes.

Can anyone explain why this is happening?

+7
java eclipse html proxy jdeveloper
source share
2 answers

Web servers return HTTP headers with each response, and usually these headers indicate how long the response can be cached. Proxies read these headers and make a decision when they see the same request again: whether to redistribute this request to the server again or simply return a cached copy of the response.

You can change the configuration of your server so that next time it tells the proxy server not to cache pages. However, some proxies are improperly configured or corrupted and will cache pages that they should not cache.

In these cases, one ugly solution that works is to give your JS and CSS new names with every change. For example, if your index.html file includes index.css and index.js and you make changes to index.js, you can save the modified file as index.2.js and change the tag in index.html now point to index. 2.js.

This is a bit drastic, but it works. An easier solution to start is to refresh your page with Shift-F5, not just F5 (in your browser). This tells the browser to update all cached pages whenever possible.

+5
source share

This is similar to your proxy type. There are several types of proxies, one of which is Caching Proxy . Which, if many users are connected to it, allows static pages to be stored locally on the server for repeated requests from the client (you). When you change the proxy server, most likely, just send you an updated copy because you do not have an active client or that you are a new user.

I would suggest that the content of the new software you are creating is a preliminary search for saved page names, where Eclipse Juno generates real-time screens on the fly, bypassing the cached server setting.

+3
source share

All Articles