Re: [Resin-interest] Caching issue? with resin pro 3.1.9
Hi Aaron, thanks for your ideas… unfortunately I can be sure that’s not an browser cache or proxy issue… and of course I simplified the problem a little bit… It’s not me calling the empty directory tree, but an newsletter project of our company uses shortened urls by just referencing the folder in their emails, not the index-document to make the link look better… so the caching of 404 will appear as soon as the first test newsletters are spread at development. Until I get my hands on the index-document I have already plenty of calls on the webserver. The point is, that problem disappears as soon as resin is restarted. Until then the newsletter recipients will all see the 404 page instead of the landing page… We are already fighting with this since a while and find no way to get around… and for performance reasons we don’t like the idea to abandon resin as webserver and go back to apache or any other webserver instead. So if anyone has an idea to enlighten us what influences resins “long-term memory” of static html-content and where to fiddle with parameters to shorten the time to live for such content delivered by resin, please feel free to point us into right direction. Your idea of a customized 404 page sounds good, but it will not address the updated hmtl-documents which won’t show their changes either until resin is restarted… we definitely have a problem with static html-content being kind of resistable to changes until resin is restarted. So we still welcome ideas… or maybe someone can find same behavior? Best regards, m.w. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Caching issue? with resin pro 3.1.9
Hi Aaron, I appreciate your help… meanwhile I got a hint from Emil to flush ProxyCache with MBean… we will see if your work-around is still needed. Thanks for your active support and have a nice weekend. Best regards, m.w. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Caching issue? with resin pro 3.1.9
Hello folks, I need some helping hands with a puzzler, we ran into recently… We are using the licensed resin pro 3.1.9 to handle all our servlets and .jsps and additionally we kicked apache and also use resin to spread the static .html contents to the world. While we are aware how to influence max-age in our servlets and .jsps, we still have a strange issue with folders, where content was added after someone already called the empty folder generating a 404 response. Even if we put the index.html into the folder resin will not recognize this and still give the 404 error. Last time this happens it lasted more than 16 hours, until we restarted resin to get rid of this effect. Now my question is, where can I influence cache times of such responses, when I call a folder? Just to give better example… I put a new folder in my doc tree. Then a call of http://my-server.com/newfolder/ will give me 404 page as I have not filled folder yet. When I now put my static index.html into newfolder I can directly call the index.html and page will show. But the call of http://my-server.com/newfolder/ still gives me the 404 error page for hours and days. How can I avoid this without need to restart resin? Any clues, ideas, hints? Best regards, m.w. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Caching issue? with resin pro 3.1.9
Marco, If you are repeating that pattern every time, it sounds more like your _brower's_ cache being the culprit. Instead of calling: http://my-server.com/newfolder/ with an empty folder, place the index.html in there and _then_ call it so your browser doesn't cache up the 404 not found result. You can alternatively hold down the *shift key* while refreshing to see if it's your browser. We would actually test this making the first call in IE and then the second test in FireFox to rule that browser cache issue out, but that sounds like what you are up against. If you find this is the problem, then I am not sure what Resin's default cache settings are for the 404 not found (I bet they don't even address it), but you can replace their 404 not found with your own user-friendlier one and set your own cache settings. Do this in your resin.xml: error-page error-code='404' location='/notfound.jsp' / And set whatever meta tags, and browser cache settings you want in your /notfound.jsp. Aaron On 4/14/2010 4:03 AM, Marco Wingartz wrote: Hello folks, I need some helping hands with a puzzler, we ran into recently... We are using the licensed resin pro 3.1.9 to handle all our servlets and .jsps and additionally we kicked apache and also use resin to spread the static .html contents to the world. While we are aware how to influence max-age in our servlets and .jsps, we still have a strange issue with folders, where content was added after someone already called the empty folder generating a 404 response. Even if we put the index.html into the folder resin will not recognize this and still give the 404 error. Last time this happens it lasted more than 16 hours, until we restarted resin to get rid of this effect. Now my question is, where can I influence cache times of such responses, when I call a folder? Just to give better example... I put a new folder in my doc tree. Then a call of http://my-server.com/newfolder/ will give me 404 page as I have not filled folder yet. When I now put my static index.html into newfolder I can directly call the index.html and page will show. But the call of http://my-server.com/newfolder/ still gives me the 404 error page for hours and days. How can I avoid this without need to restart resin? Any clues, ideas, hints? Best regards, m.w. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest