Tomcat is not updated until I restarted Eclipse

I have a problem with tomcat. when I change something in my xhtml file, tomcat cannot show the changes. it shows the page before changing. I restart tomcat, I clean the tomcat directory, right-click on the server and select clean, but I need to restart eclipse to see the result. I am looking in google, but I could not find which parameter I should do in tomcat to solve the problem. In the published tab, I selected "automatically publish when resources change." please, help. I have to restart eclipse for every change.

+5
source share
2 answers

Please make sure your XHTML file is not cached by your browser. Try a forced update (in Firefox, press Shift + Refresh Button or Command + Refresh on Mac).

You can also try to configure the Tomcat context to disable caching for static resources, as described in the Apache Tomcat Configuration Reference . Set the cachingAllowed property to false (the default is true).

Check HTTP headers with Firebug. See what you have in the HTTP response: HTTP response code, Cache-Control, and Expires.

+2
source

Like @Sam, make sure your files are not cached by the browser. On Mac (Command + R) Firefox and Chrome (Shift + F5).

, Eclipse . , .

+1

All Articles