<?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 ExportMap Returns Path to Deleted Temporary File in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/exportmap-returns-path-to-deleted-temporary-file/m-p/161215#M792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When calling &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/export.html"&gt;ExportMap&lt;/A&gt;&lt;SPAN&gt; with a JSON return format, an HREF field is included with a URL to the image you requested.&amp;nbsp; After a configured amount of time (maxFileAge), that temp file is deleted.&amp;nbsp; Now after that temp file is deleted, if I call the original query url again I receive a JSON message with the exact HREF field value as in the previous call and navigating to that url returns a 404 file not found error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, I am calling to the &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9"&gt;World Imagery&lt;/A&gt;&lt;SPAN&gt; service so I have no control over changing server parameters.&amp;nbsp; I am assuming maxFileAge is set to about 5 minutes and I am receiving the same href url up to 60 minutes after the first query.&amp;nbsp; After 60 minutes, I get a new href url with a valid image (again for only 5 minutes) and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tyler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2011 15:22:02 GMT</pubDate>
    <dc:creator>TylerOhlsen</dc:creator>
    <dc:date>2011-07-06T15:22:02Z</dc:date>
    <item>
      <title>ExportMap Returns Path to Deleted Temporary File</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/exportmap-returns-path-to-deleted-temporary-file/m-p/161215#M792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When calling &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/export.html"&gt;ExportMap&lt;/A&gt;&lt;SPAN&gt; with a JSON return format, an HREF field is included with a URL to the image you requested.&amp;nbsp; After a configured amount of time (maxFileAge), that temp file is deleted.&amp;nbsp; Now after that temp file is deleted, if I call the original query url again I receive a JSON message with the exact HREF field value as in the previous call and navigating to that url returns a 404 file not found error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, I am calling to the &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9"&gt;World Imagery&lt;/A&gt;&lt;SPAN&gt; service so I have no control over changing server parameters.&amp;nbsp; I am assuming maxFileAge is set to about 5 minutes and I am receiving the same href url up to 60 minutes after the first query.&amp;nbsp; After 60 minutes, I get a new href url with a valid image (again for only 5 minutes) and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tyler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 15:22:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/exportmap-returns-path-to-deleted-temporary-file/m-p/161215#M792</guid>
      <dc:creator>TylerOhlsen</dc:creator>
      <dc:date>2011-07-06T15:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: ExportMap Returns Path to Deleted Temporary File</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/exportmap-returns-path-to-deleted-temporary-file/m-p/161216#M793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The response header for an exportMap request contains the following cache-control header for this service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export?bbox=-20037507.2295943%2C-20037507.2295944%2C20037507.2295943%2C20037507.2295943&amp;amp;f=pjson"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export?bbox=-20037507.2295943%2C-20037507.2295944%2C20037507.2295943%2C20037507.2295943&amp;amp;f=pjson&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cache-Control private, max-age=3527&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Browse might be caching response in this case for upto 3527 seconds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you could try adding a timestamp parameter to the request so each request is unique&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export?bbox=-20037507.2295943%2C-20037507.2295944%2C20037507.2295943%2C20037507.2295943&amp;amp;f=pjson&amp;amp;ts=" rel="nofollow" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export?bbox=-20037507.2295943%2C-20037507.2295944%2C20037507.2295943%2C20037507.2295943&amp;amp;f=pjson&amp;amp;ts=&lt;/A&gt;&lt;SPAN&gt;&amp;lt;currenttimeinms&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;request #1&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export?bbox=-20037507.2295943%2C-20037507.2295944%2C20037507.2295943%2C20037507.2295943&amp;amp;f=pjson&amp;amp;ts=10487689"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export?bbox=-20037507.2295943%2C-20037507.2295944%2C20037507.2295943%2C20037507.2295943&amp;amp;f=pjson&amp;amp;ts=10487689&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;request #2&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export?bbox=-20037507.2295943%2C-20037507.2295944%2C20037507.2295943%2C20037507.2295943&amp;amp;f=pjson&amp;amp;ts=10487690"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export?bbox=-20037507.2295943%2C-20037507.2295944%2C20037507.2295943%2C20037507.2295943&amp;amp;f=pjson&amp;amp;ts=10487690&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 15:28:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/exportmap-returns-path-to-deleted-temporary-file/m-p/161216#M793</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2011-07-08T15:28:54Z</dc:date>
    </item>
  </channel>
</rss>

