I would like to report an issue related to HTML code formatting on our blog after enabling the cache mechanism.
<main class=”relative h-full w-full flex-1 overflow-auto transition-width”>
</main>
</div>
<div class=" col-lg-3 md-pt100">
<div class="blog-sidebar">
<h2 class="widgettitle">Kategorie</h2>
<ul>
<li class="cat-item cat-item-1"><a >Balkon</a> (5)</li>
<li class="cat-item cat-item-1"><a >Bez kategorii</a> (84)</li>
<li class="cat-item cat-item-1"><a >Byliny</a> (13)</li>
<li class="cat-item cat-item-1"><a >cebule kwiatowe</a> (1)</li>
<li class="cat-item cat-item-1"><a >Dalie</a> (1)</li>
<li class="cat-item cat-item-1"><a >Dekoracje</a> (6)</li>
However, after enabling the cache, we noticed that the code has been “flattened” and appears to be written in a single line. An example snippet of the code after enabling the cache looks like this:
></article></div><div class="row pagination-wrap justify-content-center"><nav aria-label="Paginacja" class="pagination d-flex justify-content-center"><ul class='page-numbers'><li><span aria-current="page" class="page-numbers current">1</span></li><li><a class="page-numbers" >2</a></li><li><a class="page-numbers" >3</a></li><li><span class="page-numbers dots">…</span></li><li><a class="page-numbers" >14</a></li><li><a class="next page-numbers" > ?</a></li></ul></nav></div></div><div class=" col-lg-3 md-pt100"><div class="blog-sidebar"><h2 class="widgettitle">Kategorie</h2><ul><li class="cat-item cat-item-1"><a>Balkon</a> (5)</li><li class="cat-item cat-item-1"><a>Bez kategorii</a> (84)</li><li class="cat-item cat-item-1"><a>Byliny</a> (13)</li><li class="cat-item cat-item-1"><a>cebule kwiatowe</a> (1)</li><li class="cat-item cat-item-1"><a>Dalie</a> (1)</li><li class="cat-item cat-item-1"><a>Dekoracje</a> (6)</li><li class="cat-item cat-item-1">
We would like to understand why it introduces changes to the HTML code structure. Could you please explain why, after enabling the cache mechanism, the HTML code is presented in a single line? Is there a way to maintain code readability while using the cache mechanism?
Thank you very much for your assistance in resolving this issue.
Best regards