Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRhett Herring
Courses Plus Student 11,023 PointsCache Issues Pages never change
I have run into an issue where changes I make and restart server don't show up. The Robot images shows up... if I delete that entire section of html, save and restart server the page does not change.
I have tried File> invalidate cache and restart with no luck... is there a way to delete Tomcat cache?
2 Answers
Jennifer Nordell
Treehouse TeacherHi there, Rhett Herring ! It sounds like it might be your browser that is caching things. I'm wondering what happens if you do a "hard refresh". Try holding down CTRL and pressing refresh or CTRL + F5 and let me know what happens.
Hopefully, this helps, but let me know!
Rhett Herring
Courses Plus Student 11,023 PointsI was able to run "./gradlew cleanBuildCache" from the IntelliJ terminal... everything works now.
I will keep this handy for future: spring.thymeleaf.cache=false
Rhett Herring
Courses Plus Student 11,023 PointsRhett Herring
Courses Plus Student 11,023 PointsI've tried every browser I have... I have restarted, invalidate cache in Intelij... It's only the HTML files ... changes to the controller do show.... but HTML is acting exactly like server cache.
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherHi Rhett Herring ! It looks like you might have to turn off the caching in a properties file with this line:
spring.thymeleaf.cache=false
Take a look at this stackoverflow answer and see if it helps!