Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Preventing WebService Response in Client's Browser

Avatar

Former Community Member

I am currently in the phase of evaluating flex as my company's future projects development framework. All the things yet have produced results in the favor of flex. But I am stuck at a point and cannot find a solution for this: We will be using ASP.NET as our server end for data access. We have decided, we will be using ASP.NET web-services to get data from server. My chief architect wants to make sure that we can develop an application which will leave no traces on clients machine even in the form of browser cache. I have found ways to prevent caching of swf files on client's browser but whenever I access an ASP.NET web-method (using mx.rpc.soap.WebService) I see files in browser cache folder which contain response from web-methods in plain text form. I know browsers can be informed by http headers about not making caches but how can we do that for web-methods in ASP.NET?  Waiting for ideas. Akif.

2 Replies

Avatar

Former Community Member

I think that you shoudl ask your question on one of the Flex Forums. This is for Web Services as it pertains to LiveCycle Designer so I do not think it will get answered.

Paul

Avatar

Former Community Member

Finally I found a solution. In .Net Web Method just before returning response add the following line:  Context.Response.AddHeader("Cache-Control", "no-store")  Browsers then will not make copy of the response on the disk.