<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Preventing client-side caching of the Flex Viewer in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710279#M21557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could update the ConfigManager or WidgetManager code to add a ts timestamp to the widget urls.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2011 15:52:50 GMT</pubDate>
    <dc:creator>DasaPaddock</dc:creator>
    <dc:date>2011-03-10T15:52:50Z</dc:date>
    <item>
      <title>Preventing client-side caching of the Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710275#M21553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I've made some updates to my custom Flex Viewer 2.1 application and publish the new version on our server, my colleagues don't see those changes because the old version is stored in their browsers cache. Deleting all ache files will fix this, but I don't want them to have to do that all the time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've searched for some info on how to prevent client-side caching, and it seems like the most common solutions is to either and some random number or time-stamp to the url when calling the swf-fil (something like index.swf?time='time-stamp', or to "set the HTTP headers for the SWF file request in the HTML wrapper" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's some example code to do this in JSP:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// Set Cache-Control to no-cache. 
response.setHeader("Cache-Control", "no-cache"); 
// Prevent proxy caching. 
response.setHeader("Pragma", "no-cache");&amp;nbsp; 
// Set expiration date to a date in the past. 
response.setDateHeader("Expires", 946080000000L); //Approx Jan 1, 2000 
// Force always modified. 
response.header("Last-Modified", new Date());&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;A href="http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7b09.html#WS2db454920e96a9e51e63e3d11c0bf67110-7ff5" rel="nofollow noopener noreferrer" target="_blank"&gt;From the Adobe help documentation&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also seen similar examples in PHP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is I don't know how to use this code with my Flex Viewer application, I hardly know what JSP is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I should do something with the index.html or the index.template.html (to keep the changes when rebuilding my project)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or maybe someone has another solution to my problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710275#M21553</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-12-12T06:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing client-side caching of the Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710276#M21554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can change the first argument to the swfobject.embedSWF() function in the index.template.html to something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"${swf}.swf?ts=" + new Date().getTime()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 17:16:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710276#M21554</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-11-05T17:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing client-side caching of the Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710277#M21555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dasa, I changed the swfobject.embedSWF() function as you suggested, but without the result I was looking for. You still have to clear the cache memory to see the changes made to the application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder if this change only affect the index.swf? Then maybe index.swf is not loaded from the cache memory, but all other swfs are, all widgets and controls. And that's were all the changes are made. If this is the case, how could I use this method on all the swf-files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or do I have to use some other method?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 10:28:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710277#M21555</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2010-11-12T10:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing client-side caching of the Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710278#M21556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dasa, your tip is working for the main "index.swf" file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How could I make this working for the several widgets-swf-files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are also sawing that the config files are cached (main+widget's configs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 08:02:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710278#M21556</guid>
      <dc:creator>TomSchuller</dc:creator>
      <dc:date>2011-03-10T08:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing client-side caching of the Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710279#M21557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could update the ConfigManager or WidgetManager code to add a ts timestamp to the widget urls.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 15:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710279#M21557</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-03-10T15:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing client-side caching of the Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710280#M21558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You could update the ConfigManager or WidgetManager code to add a ts timestamp to the widget urls.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you provide an example for this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 18:25:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710280#M21558</guid>
      <dc:creator>MelissaPrindiville</dc:creator>
      <dc:date>2011-03-31T18:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing client-side caching of the Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710281#M21559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever resolve the SWF cache issue? What the method you use?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 17:26:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710281#M21559</guid>
      <dc:creator>xiaoyizhang</dc:creator>
      <dc:date>2011-05-25T17:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing client-side caching of the Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710282#M21560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You could update the ConfigManager or WidgetManager code to add a ts timestamp to the widget urls.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dpaddock,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you tell me how to update the ConfigManager or WidgetManager code to add a ts timestamp to the widget urls?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;xzhang&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 11:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710282#M21560</guid>
      <dc:creator>xiaoyizhang</dc:creator>
      <dc:date>2011-05-26T11:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing client-side caching of the Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710283#M21561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;xzhang,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Actually all the work is done in the ConfigManager.as.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code for FlexViewer 2.3.1 with timestamps added to all widgets and their xml files.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 13:52:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710283#M21561</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-05-26T13:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing client-side caching of the Flex Viewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710284#M21562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So...sorry for a blatantly necro-ing this very old post, but it's exactly what I'm trying to do, and the changes to ConfigManager.as do not appear to be working for me.&amp;nbsp; I'm using a slightly older version of the FlexViewer than the example for this post, but applying the timestamp changes appeared to be a straight-forward merge into my version of ConfigManager.as.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are others able to prevent client-side caching of their apps?&amp;nbsp; It seems like a desirable thing to do unless you can get away with asking your users to clear their cache every time you update your app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm also certainly open to other (non-ConfigManager) anti-caching approaches.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 21:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/preventing-client-side-caching-of-the-flex-viewer/m-p/710284#M21562</guid>
      <dc:creator>DarrenGemoets</dc:creator>
      <dc:date>2013-04-16T21:49:32Z</dc:date>
    </item>
  </channel>
</rss>

