[flexcoders] Caching problem with HttpSevice
Hi, I am trying to call a url by using HTTPService. Hitting this url passing two parameters, starts/stops a service. This is working fine when I try to do it locally. But when I put it on the server it does not work at all. It worked yesterday 1-2 times but after that it does not work. I have to embed the .swf file in a object tag and provide the name of .swf file in param name tag. Would this be a proxy caching problem? I have used POST method and also set some dummyparameter in the url to be dummyPara=+new Date().time, but still does not work. Also as shown below the header has Cache-Control:no-cache set. But still does not work. Can somebody suggest me how to solve this? The header returned by the url is : HTTP/1.1 200 OK Date: Fri, 11 Jul 2008 10:32:59 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Cache-Control: no-cache Pragma: no-cache Expires: -1 Content-Type: text/html; charset=utf-8 Content-Length: 261
[flexcoders] Caching Problem..Changing Browsers Doesn't Help either
Hi All, Please take some time out to answer this Flex Beginners questions: 1. I made some changes to my index.mxml and built my project o compile the index.swf, after I start my tomcat server and try to access my homepage (index.swf) I am still seeing the old version of my index.swf. I tried cleaning up the cache, cleaning and building my app and restarting the server and even opening the homepage from mozilla but it doesn't help. I still see the old version of my index.swf. Can anyone kindly tell me what the problem is? 2. I am using struts framework with the Flex framework for view. In my web.xml I have defineg the index.swf as the main page. So I can see the index.swf as homepage. But when I right click on it, I don't see the View Source option, can we even have a View Source option in a SWF file?? Thank You, Tarun
Re: [flexcoders] Caching Problem..Changing Browsers Doesn't Help either
On Wednesday 17 Oct 2007, [EMAIL PROTECTED] wrote: compile the index.swf, after I start my tomcat server and try to access my homepage (index.swf) I am still seeing the old version of my index.swf. Maybe it's not being compiled and/or copied correctly. Can you verify the change date on the web servers file system ? But when I right click on it, I don't see the View Source option, can we even have a View Source option in a SWF file?? You need to export the source. In Builder 3 beta 2, this is an option on the 'release version' wizard. -- Tom Chiverton. Are you a great Flex programmer, who knows Cairngorm, and has done some ColdFusion work ? Would you like to work for a top 30 law firm in Manchester, UK ? Are not an agency ? If yes, send email ! This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Caching problem
Hi there! I have an xml file that needs to be loaded eventually using a URLRequest. I'm trying to avoid loading a cached file using these headers: urlRequest.requestHeaders.push(new URLRequestHeader(Cache- Control, no-cache, no-store, max-age=0, must-revalidate)); urlRequest.requestHeaders.push(new URLRequestHeader (Expires, Fri, 30 Oct 1998 14:19:41 GMT)); urlRequest.requestHeaders.push(new URLRequestHeader (Pragma, no-cache)); It works ok in firefox and IE6.0.2900, but I still obtain a cached file in IE6.0.3790+ and IE7. Do I need to add any more headers? or what's the problem here? Thanks in advance
Re: [flexcoders] Caching problem
With Flash, I've learned to do the lo-tech method of attaching random numbers to the path. Simple, but it's been effective!: url:String = resource + ?rand= + Math.floor(Math.random() * 10); -Scott On 14 Mar 2007 08:07:52 -0700, Alex [EMAIL PROTECTED] wrote: Hi there! I have an xml file that needs to be loaded eventually using a URLRequest. I'm trying to avoid loading a cached file using these headers: urlRequest.requestHeaders.push(new URLRequestHeader(Cache- Control, no-cache, no-store, max-age=0, must-revalidate)); urlRequest.requestHeaders.push(new URLRequestHeader (Expires, Fri, 30 Oct 1998 14:19:41 GMT)); urlRequest.requestHeaders.push(new URLRequestHeader (Pragma, no-cache)); It works ok in firefox and IE6.0.2900, but I still obtain a cached file in IE6.0.3790+ and IE7. Do I need to add any more headers? or what's the problem here? Thanks in advance -- : : ) Scott