<?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: Set Cache-Control Header for Alfresco Content in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40411#M16935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this would be the correct file for repository urls - if you put it in tomcat/conf/web.xml the filter would also be active for share...&lt;/P&gt;&lt;P&gt;But, I didn't read your question as carefully as I should. You can influence tomcats delivery of elements with the filter - but for the content-servlet this is most likely overridden by alfresco, because alfresco wants to make sure that you always get the current version of the nodes content&amp;nbsp;(In the meantime some could have created a new version).&lt;/P&gt;&lt;P&gt;I fear you have to write your own content servlet if you want to set the max-age header - or put a http server in front of tomcat to manipulate the header for the ../download/... url.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Apr 2017 20:24:34 GMT</pubDate>
    <dc:creator>mehe</dc:creator>
    <dc:date>2017-04-13T20:24:34Z</dc:date>
    <item>
      <title>Set Cache-Control Header for Alfresco Content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40404#M16928</link>
      <description>I'm using Alfresco to store PDFs for my web application. However, when requesting these files directly, e.g. via&amp;nbsp;https://example.com/alfresco//download/attach/workspace/SpacesStore//b1b6f82c-e09a-4f99-b9be-01aed2f53882/demo.pdf?ticket=TICKET_26e8e8d14d97963e685879ab9a09cb2fb973ff85the HTTP Cache-Con</description>
      <pubDate>Wed, 12 Apr 2017 14:59:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40404#M16928</guid>
      <dc:creator>enigma969</dc:creator>
      <dc:date>2017-04-12T14:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Cache-Control Header for Alfresco Content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40405#M16929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using tomcat directly or a http server as reverse proxy (what you should do)?&lt;/P&gt;&lt;P&gt;for tomcat, you can manage cache control with the "expires filter", see&amp;nbsp;&lt;A class="link-titled" href="https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html" title="https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html" rel="nofollow noopener noreferrer"&gt;Apache Tomcat 7 Configuration Reference (7.0.77) - Container Provided Filters&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 15:33:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40405#M16929</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-04-12T15:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Cache-Control Header for Alfresco Content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40406#M16930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Directly from Tomcat. Why should I use a proxy?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going to read&amp;nbsp;the documentation, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 16:40:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40406#M16930</guid>
      <dc:creator>enigma969</dc:creator>
      <dc:date>2017-04-12T16:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Cache-Control Header for Alfresco Content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40407#M16931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use a reverse proxy, because I can configure static content to be delivered by the http server, can display a friendly maintenance page for alfresco when it's down, handle https with the httpd, can hide my nodejs or angular SPAs behind the reverse proxy and use the same sitename (and avoid corse problems), can easily switch to a backup alfresco....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 16:59:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40407#M16931</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-04-12T16:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Cache-Control Header for Alfresco Content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40408#M16932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the code provided at the documentation page of Tomcat but it still responds with &lt;SPAN style="color: #303942; background-color: #ffffff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #303942; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;must-revalidate, max-age=0".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303942; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Here is my web.xml:&amp;nbsp;&lt;A href="https://pastebin.com/GhXFh0jd" rel="nofollow noopener noreferrer"&gt;https://pastebin.com/GhXFh0jd&lt;/A&gt;&amp;nbsp;(the ExpiresFilter is at the bottom). Does the "&lt;SPAN style="color: #333333; background-color: #f8f8f8;"&gt;CacheExpiresFilter" influence the "ExpiresFilter" somehow?&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303942; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Any ideas or should I post this at a Tomcat forum?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 15:17:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40408#M16932</guid>
      <dc:creator>enigma969</dc:creator>
      <dc:date>2017-04-13T15:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Cache-Control Header for Alfresco Content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40409#M16933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you try to comment out the secure-comms section (you cannot communicate with solr then, but just for a test)?&lt;/P&gt;&lt;P&gt;Maybe the existence of a security-constraint disables the setting of the ExpiresFilter.&lt;/P&gt;&lt;P&gt;I disabled the https communication between solr and the repo, because the are livin' on the same server - but this is another story...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 16:02:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40409#M16933</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-04-13T16:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Cache-Control Header for Alfresco Content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40410#M16934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I commented out the secure-comms section, but still the same result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, I'm modifiying ./tomcat/webapps/alfresco/WEB-INF/web.xml - I hope this is the correct file?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 18:01:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40410#M16934</guid>
      <dc:creator>enigma969</dc:creator>
      <dc:date>2017-04-13T18:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Cache-Control Header for Alfresco Content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40411#M16935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this would be the correct file for repository urls - if you put it in tomcat/conf/web.xml the filter would also be active for share...&lt;/P&gt;&lt;P&gt;But, I didn't read your question as carefully as I should. You can influence tomcats delivery of elements with the filter - but for the content-servlet this is most likely overridden by alfresco, because alfresco wants to make sure that you always get the current version of the nodes content&amp;nbsp;(In the meantime some could have created a new version).&lt;/P&gt;&lt;P&gt;I fear you have to write your own content servlet if you want to set the max-age header - or put a http server in front of tomcat to manipulate the header for the ../download/... url.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 20:24:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-cache-control-header-for-alfresco-content/m-p/40411#M16935</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-04-13T20:24:34Z</dc:date>
    </item>
  </channel>
</rss>

