<p dir="auto">At now Electron application store cache files near to config files in folders <code class="notranslate">~/.config/APP/Cache</code> and <code class="notranslate">~/.config/APP/GPUCache</code>, so config folder contains many useless files with large size (more than 200 mb).</p>
<p dir="auto">Linux systems use separate <code class="notranslate">~/.cache</code> folder for store cache files, so Google Chrome store configs in <code class="notranslate">~/.config/google-chrome</code> but all cache files in <code class="notranslate">~/.cache/google-chrome</code>.</p>
<p dir="auto">We can find <a href="https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html" rel="nofollow">right location of cache folder</a> via <code class="notranslate">$XDG_CACHE_HOME</code> environment variable.</p>
<p dir="auto">Please move all Electron cache files from <code class="notranslate">~/.config/APP</code> to <code class="notranslate">~/$XDG_CACHE_HOME/APP</code> folder, like other apps do.</p>
<ul dir="auto">
<li>Electron version: 1.6</li>
<li>Operating system: 10.11</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/184170/22736528/35f96038-ee07-11e6-8a72-eecd29f114db.png"><img src="https://cloud.githubusercontent.com/assets/184170/22736528/35f96038-ee07-11e6-8a72-eecd29f114db.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/184170/22736530/3b42f734-ee07-11e6-9794-fc381f07e801.png"><img src="https://cloud.githubusercontent.com/assets/184170/22736530/3b42f734-ee07-11e6-9794-fc381f07e801.png" alt="image" style="max-width: 100%;"></a></p>