How to prevent Grails from caching old versions of gsp file?
问题 I am making modifications to /grails-app/views/index.gsp. When I save the file and refresh http://localhost:8080/index.gsp in Firefox, I am getting an old version of the file. Is there a way to prevent Grails from caching and rendering old versions of the file? (I tried restarting the server and clearing Firefox's cache.) Thanks! 回答1: There doesn't seem to be a simple way to do this, but it's not much work. My solution subclasses the servlet that renders GSPs (and also the controller that's