<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cache isn&#x27;t working?]]></title><description><![CDATA[<p dir="auto">I'm having issues keeping the cache for the amount of time that's it is configured for.</p>
<ol>
<li>I load the page and it is a Cache MISS</li>
<li>I reload again and it's a Cache HIT</li>
<li>I wait 1 minute and it's a Cache MISS...</li>
</ol>
<p dir="auto">I've configured Cache Duration to 14400 seconds, but it seems to be entirely ignored.</p>
]]></description><link>https://community.appdrag.com/topic/908/cache-isn-t-working</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 15:01:39 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/908.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Jul 2021 16:29:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Tue, 31 Aug 2021 15:35:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/208">@thomasd</a> nop, not all headers are making the cache vary, and most users will use chrome, safari or Firefox</p>
]]></description><link>https://community.appdrag.com/post/3811</link><guid isPermaLink="true">https://community.appdrag.com/post/3811</guid><dc:creator><![CDATA[jbenguira]]></dc:creator><pubDate>Tue, 31 Aug 2021 15:35:14 GMT</pubDate></item><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Tue, 31 Aug 2021 10:15:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/1">@jbenguira</a></p>
<p dir="auto">So, every new unique visitor will be served a fresh page-view, right?</p>
]]></description><link>https://community.appdrag.com/post/3810</link><guid isPermaLink="true">https://community.appdrag.com/post/3810</guid><dc:creator><![CDATA[ThomasD]]></dc:creator><pubDate>Tue, 31 Aug 2021 10:15:40 GMT</pubDate></item><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Tue, 31 Aug 2021 10:10:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/208">@thomasd</a> no it's not based on sessions but based on headers, so different browsers will pass different user agent and so are cached differently</p>
]]></description><link>https://community.appdrag.com/post/3809</link><guid isPermaLink="true">https://community.appdrag.com/post/3809</guid><dc:creator><![CDATA[jbenguira]]></dc:creator><pubDate>Tue, 31 Aug 2021 10:10:09 GMT</pubDate></item><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Mon, 30 Aug 2021 11:06:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/16">@joseph-benguira</a><br />
Is Cache on a per-session basis?</p>
<p dir="auto">If I reload until I have "Hit from cloudfront" and then change to another browser, I'll get a "Miss from cloudfront".</p>
<p dir="auto">Shouldn't the other browser get the Cache hit as well?</p>
]]></description><link>https://community.appdrag.com/post/3805</link><guid isPermaLink="true">https://community.appdrag.com/post/3805</guid><dc:creator><![CDATA[ThomasD]]></dc:creator><pubDate>Mon, 30 Aug 2021 11:06:19 GMT</pubDate></item><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Thu, 29 Jul 2021 07:45:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/16">@joseph-benguira</a></p>
<p dir="auto">Thanks! It's now working as I expected it to, at rocket speed <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":-)" alt="🙂" /> <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f680.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--rocket" title=":rocket:" alt="🚀" /></p>
]]></description><link>https://community.appdrag.com/post/3726</link><guid isPermaLink="true">https://community.appdrag.com/post/3726</guid><dc:creator><![CDATA[ThomasD]]></dc:creator><pubDate>Thu, 29 Jul 2021 07:45:53 GMT</pubDate></item><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Tue, 27 Jul 2021 05:00:18 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/208">@ThomasD</a> , we fixed yesterday an issue with this cache option, this has bee published in production last night.</p>
<p dir="auto">I can now see your cache duration correctly applied <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
<p dir="auto">Could you check again and confirm it's now all good?</p>
]]></description><link>https://community.appdrag.com/post/3718</link><guid isPermaLink="true">https://community.appdrag.com/post/3718</guid><dc:creator><![CDATA[Joseph Benguira]]></dc:creator><pubDate>Tue, 27 Jul 2021 05:00:18 GMT</pubDate></item><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Wed, 21 Jul 2021 10:00:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/16">@joseph-benguira</a></p>
<p dir="auto">I've tried using Cloudflares pagerule "Cache everything" - but since the headers invalidate cache, Cloudflare will do the same and set pages to "Dynamic" mode.</p>
<p dir="auto">From cloudflare:<br />
"Whether we actually store the asset and for how long is determined by the Cache-Control headers returned with responses from the origin server"</p>
<p dir="auto">Using Edge Cache TTL makes it possible, but that disables all cookies....</p>
<p dir="auto">This means the potential API requests for this site with 400 products and 2x languages would be 2.3M requests in 24 hours....</p>
<p dir="auto">Can you please change the admin text for cache duration, it's very missleading if it's only for assets and not content (as the text says).</p>
]]></description><link>https://community.appdrag.com/post/3701</link><guid isPermaLink="true">https://community.appdrag.com/post/3701</guid><dc:creator><![CDATA[ThomasD]]></dc:creator><pubDate>Wed, 21 Jul 2021 10:00:46 GMT</pubDate></item><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Tue, 20 Jul 2021 17:09:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/208">@thomasd</a> OK I checked your url and PM<br />
in fact caching affect only resources, not the HTML pages ...<br />
in our setup .html files are always returned with this header</p>
<pre><code>cache-control: public, must-revalidate, max-age=0
</code></pre>
<p dir="auto">but it will still be cached for a maximum of 30 seconds</p>
<p dir="auto">FYI from a cloud function (in gateway mode) you can set any http header<br />
including something like this<br />
cache-control: max-age=14400</p>
<p dir="auto">Since you use Cloudflare, another option is to activate caching from there<br />
you can do that with a "Page Rule"</p>
]]></description><link>https://community.appdrag.com/post/3699</link><guid isPermaLink="true">https://community.appdrag.com/post/3699</guid><dc:creator><![CDATA[Joseph Benguira]]></dc:creator><pubDate>Tue, 20 Jul 2021 17:09:30 GMT</pubDate></item><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Tue, 20 Jul 2021 07:11:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/1">@jbenguira</a> I've sent them in a PM</p>
]]></description><link>https://community.appdrag.com/post/3697</link><guid isPermaLink="true">https://community.appdrag.com/post/3697</guid><dc:creator><![CDATA[ThomasD]]></dc:creator><pubDate>Tue, 20 Jul 2021 07:11:43 GMT</pubDate></item><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Mon, 19 Jul 2021 18:02:54 GMT]]></title><description><![CDATA[<p dir="auto">Hey Thomas,<br />
You have not disclosed the url so I can't check...</p>
]]></description><link>https://community.appdrag.com/post/3692</link><guid isPermaLink="true">https://community.appdrag.com/post/3692</guid><dc:creator><![CDATA[jbenguira]]></dc:creator><pubDate>Mon, 19 Jul 2021 18:02:54 GMT</pubDate></item><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Mon, 19 Jul 2021 06:44:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/2">@wassim</a></p>
<p dir="auto">Just tried with a blank page, same issue, cache only lasts a few seconds...</p>
]]></description><link>https://community.appdrag.com/post/3686</link><guid isPermaLink="true">https://community.appdrag.com/post/3686</guid><dc:creator><![CDATA[ThomasD]]></dc:creator><pubDate>Mon, 19 Jul 2021 06:44:03 GMT</pubDate></item><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Mon, 19 Jul 2021 06:39:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/2">@wassim</a></p>
<p dir="auto">Here's without Cloudflare and a page without Query Parameters:</p>
<p dir="auto"><img src="/assets/uploads/files/1626676686806-8b1d3470-35dd-439f-80a9-5824bccfcc80-image-2021-07-19-at-8.36.58-am.jpg" alt="8b1d3470-35dd-439f-80a9-5824bccfcc80-Image 2021-07-19 at 8.36.58 AM.jpg" class="img-responsive img-markdown" /></p>
]]></description><link>https://community.appdrag.com/post/3685</link><guid isPermaLink="true">https://community.appdrag.com/post/3685</guid><dc:creator><![CDATA[ThomasD]]></dc:creator><pubDate>Mon, 19 Jul 2021 06:39:25 GMT</pubDate></item><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Mon, 19 Jul 2021 06:38:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/2">@wassim</a></p>
<ul>
<li>It's a GET request, but the page uses Cloud API function to render HTML.</li>
<li>It uses Query parameters, but even when they're the same (no change), there's no cache.</li>
<li>What do you mean? It's only a setting under Optimize?</li>
</ul>
<p dir="auto">The headers:<br />
<img src="/assets/uploads/files/1626676292676-ed846c36-9e95-41cc-a83c-9eaf0b20ebd0-image-2021-07-19-at-8.29.33-am.jpg" alt="ed846c36-9e95-41cc-a83c-9eaf0b20ebd0-Image 2021-07-19 at 8.29.33 AM.jpg" class="img-responsive img-markdown" /></p>
<p dir="auto">Request headers:<br />
<img src="/assets/uploads/files/1626676435506-1190b753-9e23-40af-8ad8-19ba8677e54e-image-2021-07-19-at-8.32.58-am.jpg" alt="1190b753-9e23-40af-8ad8-19ba8677e54e-Image 2021-07-19 at 8.32.58 AM.jpg" class="img-responsive img-markdown" /></p>
]]></description><link>https://community.appdrag.com/post/3684</link><guid isPermaLink="true">https://community.appdrag.com/post/3684</guid><dc:creator><![CDATA[ThomasD]]></dc:creator><pubDate>Mon, 19 Jul 2021 06:38:58 GMT</pubDate></item><item><title><![CDATA[Reply to Cache isn&#x27;t working? on Mon, 19 Jul 2021 06:07:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/208">@thomasd</a> hello,</p>
<ul>
<li>What AppDrag component are you referring to ? A website page ? A Cloud API Function ? Which method (GET/POST) ?</li>
<li>How do you define the cache?</li>
<li>What do you see in the response headers for the cache duration?</li>
</ul>
]]></description><link>https://community.appdrag.com/post/3683</link><guid isPermaLink="true">https://community.appdrag.com/post/3683</guid><dc:creator><![CDATA[Wassim]]></dc:creator><pubDate>Mon, 19 Jul 2021 06:07:37 GMT</pubDate></item></channel></rss>