users@jersey.java.net

Re: [Jersey] Firefox making multiple GET requests against a resource - any idea why?

From: Alex Bleasdale <rhodlite78_at_yahoo.co.uk>
Date: Thu, 12 Nov 2009 09:51:03 -0800 (PST)

Hi,

Guess I spoke too soon!

It would appear that CacheControl is causing this to happen. Here are the
settings I'm using:

                CacheControl cc = new CacheControl();
                cc.setMaxAge(0);
                cc.setNoCache(true);
                cc.setNoStore(true);
                cc.setPrivate(true);
                cc.setSMaxAge(0);

                return Response.ok(ONE_BY_ONE).type("image/gif").cacheControl(cc)
                                .build();

Would anyone have any recommendations as to how I could stop this issue from
happening?

Thanks in advance!
A
-- 
View this message in context: http://n2.nabble.com/Firefox-making-multiple-GET-requests-against-a-resource-any-idea-why-tp3994046p3994511.html
Sent from the Jersey mailing list archive at Nabble.com.