<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Lieray DXP 7.4 + Azure Cloud Front CDN</title>
  <link rel="self" href="https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=123219399" />
  <subtitle>Lieray DXP 7.4 + Azure Cloud Front CDN</subtitle>
  <id>https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=123219399</id>
  <updated>2026-04-07T22:15:21Z</updated>
  <dc:date>2026-04-07T22:15:21Z</dc:date>
  <entry>
    <title>RE: RE: Lieray DXP 7.4 + Azure Cloud Front CDN</title>
    <link rel="alternate" href="https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123265971" />
    <author>
      <name>Sergio Sanchez</name>
    </author>
    <id>https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123265971</id>
    <updated>2025-02-25T14:31:32Z</updated>
    <published>2025-02-25T14:31:31Z</published>
    <summary type="html">&lt;p&gt;I set up the configuration to be public and TTL of 3600 seconds and
  when I request the file with its URL, I can see the expected headers.&lt;/p&gt;
&lt;p&gt;Inspecting with Developer Tools, I can see&lt;/p&gt;
&lt;p&gt;cache-control:public, max-age=3600&lt;br&gt;  &lt;/p&gt;</summary>
    <dc:creator>Sergio Sanchez</dc:creator>
    <dc:date>2025-02-25T14:31:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Lieray DXP 7.4 + Azure Cloud Front CDN</title>
    <link rel="alternate" href="https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123257255" />
    <author>
      <name>Elena Muñoz</name>
    </author>
    <id>https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123257255</id>
    <updated>2025-02-21T21:27:59Z</updated>
    <published>2025-02-21T16:56:04Z</published>
    <summary type="html">&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Thanks for the ideas.. here some pics:&lt;/p&gt;
&lt;p&gt;Here headers from local lfieray portal:&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://ibb.co/GfbJ04Cw"&gt;Headers_Local&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here from the CDN:&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://ibb.co/wrRZ5MV8"&gt;Headers_CDN&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And yes, they are world readable.&lt;/p&gt;
&lt;p&gt;Thanks a lot for any clue...&lt;/p&gt;
&lt;p&gt;Michael.&lt;/p&gt;</summary>
    <dc:creator>Elena Muñoz</dc:creator>
    <dc:date>2025-02-21T16:56:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Lieray DXP 7.4 + Azure Cloud Front CDN</title>
    <link rel="alternate" href="https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123254108" />
    <author>
      <name>Elena Muñoz</name>
    </author>
    <id>https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123254108</id>
    <updated>2025-02-21T19:09:40Z</updated>
    <published>2025-02-19T17:48:01Z</published>
    <summary type="html">&lt;p&gt;Hi Sergio,&lt;/p&gt;
&lt;p&gt;We apply the indicated configuration but the operation remains the same.&lt;/p&gt;
&lt;p&gt;​​​​​​​&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;</summary>
    <dc:creator>Elena Muñoz</dc:creator>
    <dc:date>2025-02-19T17:48:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Lieray DXP 7.4 + Azure Cloud Front CDN</title>
    <link rel="alternate" href="https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123251203" />
    <author>
      <name>Sergio Sanchez</name>
    </author>
    <id>https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123251203</id>
    <updated>2025-02-17T18:01:31Z</updated>
    <published>2025-02-17T18:01:31Z</published>
    <summary type="html">&lt;p&gt;Hello Elena, did you apply the configuration I suggested?&lt;/p&gt;
&lt;p&gt;Any changes?&lt;/p&gt;</summary>
    <dc:creator>Sergio Sanchez</dc:creator>
    <dc:date>2025-02-17T18:01:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Lieray DXP 7.4 + Azure Cloud Front CDN</title>
    <link rel="alternate" href="https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123246712" />
    <author>
      <name>Elena Muñoz</name>
    </author>
    <id>https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123246712</id>
    <updated>2025-02-17T16:55:46Z</updated>
    <published>2025-02-14T22:15:58Z</published>
    <summary type="html">&lt;p&gt;Hi Sergio&lt;/p&gt;
&lt;p&gt;Currently, the pdfs are already being cached on the CDN... but when
  you hit download or preview the files,... they are always downloaded
  from the Liferay portal and not from the CDN. Please ask if anything
  else needs to be done for Liferay to send it to the CDN and not
  “provide it itself”.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;</summary>
    <dc:creator>Elena Muñoz</dc:creator>
    <dc:date>2025-02-14T22:15:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: Lieray DXP 7.4 + Azure Cloud Front CDN</title>
    <link rel="alternate" href="https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123241793" />
    <author>
      <name>Sergio Sanchez</name>
    </author>
    <id>https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123241793</id>
    <updated>2025-02-12T11:37:02Z</updated>
    <published>2025-02-12T11:37:01Z</published>
    <summary type="html">&lt;p&gt;You can include the Cache-Control headers for requests to /documents&lt;/p&gt;
&lt;p&gt;You can do it though Instance Settings &amp;gt; Documents and Media &amp;gt;
  Cache Control&lt;/p&gt;
&lt;p&gt;
  &lt;b id="docs-internal-guid-4bc087cf-7fff-9413-8fdc-8a4c4185b63b"&gt;
    &lt;img alt="" src="https://lh7-rt.googleusercontent.com/slidesz/AGV_vUf5d8RyIXXWLhzAi8WkzOCQWqbQR1P0on_cmD8JSMB_0aGmDwyv6HeoV6xXREmFCqfd-wnWi81DyFgK5gxTZrLdX7HpVMwry_ANjAfwBWiRJOeoObVjCI8pvEmxFEZ2FNa9LjbzQw=s2048?key=KRT7WYUCxR4woOhYUvc9D_Yj"&gt;
  &lt;/b&gt;
&lt;/p&gt;</summary>
    <dc:creator>Sergio Sanchez</dc:creator>
    <dc:date>2025-02-12T11:37:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Lieray DXP 7.4 + Azure Cloud Front CDN</title>
    <link rel="alternate" href="https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123241568" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123241568</id>
    <updated>2025-02-12T09:20:15Z</updated>
    <published>2025-02-12T09:20:15Z</published>
    <summary type="html">&lt;p&gt;Try these:&lt;/p&gt;
&lt;p&gt;Access the PDF in question, bypassing the CDN (e.g. directly from the
  Liferay server) and note the HTTP-Headers that are delivered. These
  might block the CDN from caching.&lt;/p&gt;
&lt;p&gt;Check if the CDN has some explicit configuration options that might
  black- or white-list some of the URLs for either documents or
  previews. Especially in larger environments, we sometimes see one
  admin configuring &amp;quot;as far as they can observe&amp;quot;, only for
  another one (e.g. you) to later figure out that this was not enough.&lt;/p&gt;
&lt;p&gt;Also, check the configured host names: If the request for the preview
  bypasses the CDN because it uses a host name that is not handled by
  the CDN, you can either change that on the Liferay side, or also map
  that host name in the CDN. (Variations with and without
  &amp;quot;www&amp;quot; are good candidates, now that browsers effectively
  hide the actual host name they're requesting)&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2025-02-12T09:20:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: Lieray DXP 7.4 + Azure Cloud Front CDN</title>
    <link rel="alternate" href="https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123239912" />
    <author>
      <name>Elena Muñoz</name>
    </author>
    <id>https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123239912</id>
    <updated>2025-02-12T09:10:07Z</updated>
    <published>2025-02-11T21:12:06Z</published>
    <summary type="html">&lt;p&gt;Hi Olaf,&lt;/p&gt;
&lt;p&gt;Yes, they are. But it does not work.... i works (cach) for
  everything  but for PDF files from the document library.  When you
  download or preview a document this will always come from the portal
  itself not the CDN....&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Any clue?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Elena Muñoz</dc:creator>
    <dc:date>2025-02-11T21:12:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: Lieray DXP 7.4 + Azure Cloud Front CDN</title>
    <link rel="alternate" href="https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123236350" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123236350</id>
    <updated>2025-02-10T16:05:42Z</updated>
    <published>2025-02-10T16:05:41Z</published>
    <summary type="html">&lt;p&gt;Are they world-readable, or under access control? If they're not
  world-readable, this would prevent CDN use on them.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2025-02-10T16:05:41Z</dc:date>
  </entry>
  <entry>
    <title>Lieray DXP 7.4 + Azure Cloud Front CDN</title>
    <link rel="alternate" href="https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123219398" />
    <author>
      <name>Elena Muñoz</name>
    </author>
    <id>https://liferay.dev/en/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123219398</id>
    <updated>2025-02-04T16:07:34Z</updated>
    <published>2025-02-01T04:09:30Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We currently have Liferay integrated with CDN and CSS, JS are being
  served from the CDN without issues. However my main conern are the
  files (PDF files from Document Library) I would like that those files
  were downloaded or loaded (while preview) from the CDN but is not
  happening; they always are downloaded from the Portal itself  (not CDN).&lt;/p&gt;
&lt;p&gt;Please, any idea would be great, as i do not know how to change that
  behaviour. Basically: How do i set Liferay to load PDF files from the CDN.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Elena Muñoz</dc:creator>
    <dc:date>2025-02-01T04:09:30Z</dc:date>
  </entry>
</feed>
