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 trial

Java Spring Basics Modeling, Storing, and Presenting Data Feeding Data to Our Thymeleaf Templates

Rhett Herring
PLUS
Rhett Herring
Courses Plus Student 11,023 Points

Cache 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
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi 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! :sparkles:

Rhett Herring
Rhett Herring
Courses Plus Student 11,023 Points

I'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
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi 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!

Rhett Herring
PLUS
Rhett Herring
Courses Plus Student 11,023 Points

I was able to run "./gradlew cleanBuildCache" from the IntelliJ terminal... everything works now.

I will keep this handy for future: spring.thymeleaf.cache=false