<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Silex and the HTTP_CACHE	</title>
	<atom:link href="https://nerdpress.org/2011/11/29/silex-and-the-http-cache/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerdpress.org/2011/11/29/silex-and-the-http-cache/</link>
	<description>...dev, tech problems and solutions.</description>
	<lastBuildDate>Fri, 21 Mar 2014 00:18:26 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: robert		</title>
		<link>https://nerdpress.org/2011/11/29/silex-and-the-http-cache/#comment-20329</link>

		<dc:creator><![CDATA[robert]]></dc:creator>
		<pubDate>Fri, 21 Mar 2014 00:18:26 +0000</pubDate>
		<guid isPermaLink="false">https://nerdpress.org/?p=1990#comment-20329</guid>

					<description><![CDATA[You don&#039;t need the switch. HTTP cache can detect if the pap is in debug mode.]]></description>
			<content:encoded><![CDATA[<p>You don&#8217;t need the switch. HTTP cache can detect if the pap is in debug mode.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: atmosfear		</title>
		<link>https://nerdpress.org/2011/11/29/silex-and-the-http-cache/#comment-20148</link>

		<dc:creator><![CDATA[atmosfear]]></dc:creator>
		<pubDate>Tue, 18 Feb 2014 16:53:38 +0000</pubDate>
		<guid isPermaLink="false">https://nerdpress.org/?p=1990#comment-20148</guid>

					<description><![CDATA[How would you implement it in the response object if you&#039;re returning a twig template like so:
[php]
return $app[&#039;twig&#039;]-&#062;render(&#039;result.html.twig&#039;);
[/php]

I have twig cache activated but as the doc says it only put in cache the twig compilation, therefore I&#039;d also like to make use of the HTTP Cache]]></description>
			<content:encoded><![CDATA[<p>How would you implement it in the response object if you&#8217;re returning a twig template like so:</p>
<pre class="brush: php; title: ; notranslate">
return $app&#x5B;'twig']-&gt;render('result.html.twig');
</pre>
<p>I have twig cache activated but as the doc says it only put in cache the twig compilation, therefore I&#8217;d also like to make use of the HTTP Cache</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jury D'Ambros		</title>
		<link>https://nerdpress.org/2011/11/29/silex-and-the-http-cache/#comment-18281</link>

		<dc:creator><![CDATA[Jury D'Ambros]]></dc:creator>
		<pubDate>Wed, 20 Mar 2013 14:31:59 +0000</pubDate>
		<guid isPermaLink="false">https://nerdpress.org/?p=1990#comment-18281</guid>

					<description><![CDATA[Cool!! You helped me a lot!]]></description>
			<content:encoded><![CDATA[<p>Cool!! You helped me a lot!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Xang		</title>
		<link>https://nerdpress.org/2011/11/29/silex-and-the-http-cache/#comment-18076</link>

		<dc:creator><![CDATA[Xang]]></dc:creator>
		<pubDate>Sun, 03 Feb 2013 18:50:06 +0000</pubDate>
		<guid isPermaLink="false">https://nerdpress.org/?p=1990#comment-18076</guid>

					<description><![CDATA[[php]
$response = new Response($content-&#038;gt;data, 200, array(
		    &#039;Cache-Control&#039; =&#038;gt; &#039;s-maxage=120&#039;,
            &#039;ETag&#039; =&#038;gt; uniqid()
	));
[/php]
will solve the &quot;304 Not Modified&quot; issue. --Clear your cache before run with this code--]]></description>
			<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
$response = new Response($content-&amp;gt;data, 200, array(
		    'Cache-Control' =&amp;gt; 's-maxage=120',
            'ETag' =&amp;gt; uniqid()
	));
</pre>
<p>will solve the &#8220;304 Not Modified&#8221; issue. &#8211;Clear your cache before run with this code&#8211;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ivo Bathke		</title>
		<link>https://nerdpress.org/2011/11/29/silex-and-the-http-cache/#comment-5539</link>

		<dc:creator><![CDATA[Ivo Bathke]]></dc:creator>
		<pubDate>Wed, 07 Dec 2011 14:55:44 +0000</pubDate>
		<guid isPermaLink="false">https://nerdpress.org/?p=1990#comment-5539</guid>

					<description><![CDATA[Christian, yes i was wondering about that also.
But I guess to achieve this a Validation Header and the clientside Cache Header must be set.
F.e. max-age=600 and ETag or Last-Modified.

I did not yet because in my app i had no way to set a correct value to Last-Modified without too much calculation.
Afaiu this still has to be done by hand.
if not please correct me.]]></description>
			<content:encoded><![CDATA[<p>Christian, yes i was wondering about that also.<br />
But I guess to achieve this a Validation Header and the clientside Cache Header must be set.<br />
F.e. max-age=600 and ETag or Last-Modified.</p>
<p>I did not yet because in my app i had no way to set a correct value to Last-Modified without too much calculation.<br />
Afaiu this still has to be done by hand.<br />
if not please correct me.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Christian		</title>
		<link>https://nerdpress.org/2011/11/29/silex-and-the-http-cache/#comment-5442</link>

		<dc:creator><![CDATA[Christian]]></dc:creator>
		<pubDate>Tue, 06 Dec 2011 17:21:31 +0000</pubDate>
		<guid isPermaLink="false">https://nerdpress.org/?p=1990#comment-5442</guid>

					<description><![CDATA[Cool! Thanks for sharing this.
But shouldn&#039;t there be a third screenshot showing a 304 not modified response?]]></description>
			<content:encoded><![CDATA[<p>Cool! Thanks for sharing this.<br />
But shouldn&#8217;t there be a third screenshot showing a 304 not modified response?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: cordoval		</title>
		<link>https://nerdpress.org/2011/11/29/silex-and-the-http-cache/#comment-4654</link>

		<dc:creator><![CDATA[cordoval]]></dc:creator>
		<pubDate>Tue, 29 Nov 2011 14:48:53 +0000</pubDate>
		<guid isPermaLink="false">https://nerdpress.org/?p=1990#comment-4654</guid>

					<description><![CDATA[nice thanks for the sandbox]]></description>
			<content:encoded><![CDATA[<p>nice thanks for the sandbox</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
