<h3 dir="auto">Feature request</h3>
<p dir="auto">To disable cache, you can use <a href="https://playwright.dev/python/docs/api/class-cdpsession#cdp-session-send" rel="nofollow">cdp_session.send</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cdp_session = page.context.new_cdp_session(page)
cdp_session.send('Network.setCacheDisabled', {'cacheDisabled': True})"><pre class="notranslate"><code class="notranslate">cdp_session = page.context.new_cdp_session(page)
cdp_session.send('Network.setCacheDisabled', {'cacheDisabled': True})
</code></pre></div>
<p dir="auto">To be more readable, we could have the method: <code class="notranslate">page.set_cache_enabled(enabled)</code></p>
<ul dir="auto">
<li><code class="notranslate">enabled</code>: Boolean value, i.e. one of <code class="notranslate">True</code> or <code class="notranslate">False</code>. Set the <code class="notranslate">enabled</code> state of the cache.</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/46236708/122521701-b867d500-d047-11eb-9742-bcd6a66f6e5e.png"><img src="https://user-images.githubusercontent.com/46236708/122521701-b867d500-d047-11eb-9742-bcd6a66f6e5e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Chromium will cache js &amp; css files ,but the cache is disabling when using route action<br>
So,Is there any way to enable http cache when using route ?<br>
Cause i hope to reduce the number of requests</p>