Reputation: 25297
I have take over the management of a TYPO3 webpage, and Ive realized that everyday that goes by, it grows 1GB in CSS and JS files alone, "merged-ffff2d33c1ce910940054845fe400023.js" and so. Right now my compressor folder is 15GB big. It's huge!
It seems as if the CMS made a cache version of the CSS and JS with each page hit, but I'm just guessing as I have no idea of what's going on in this folder.
I've compared the files on each subpage, and while some commonalities are found, there's still many lines of difference.
How could I fix this?
Upvotes: 2
Views: 4088
Reputation: 87
I had the same problem when I set
concatenateJs = 1
concatenateCss = 1
compressJs = 1
compressCss = 1
in my typoscript. The problem is that TYPO3 seems to have a bug in compressing the JS and CSS files. I tested with 6.2.10. With every request from every user/browser TYPO3 generates a new CSS file in typo3temp/compressed every day. Deactivating compression
compressJs = 0
compressCss = 0
solves the problem and TYPO3 always delivers the same cached CSS file.
Upvotes: 4
Reputation: 131
I have found that the CSS genereated by CSS Styled content is actually aware of which elements are on each page. So if one page has an image with text on the right, the needed styles for this is included, and if another page does not have an image with text on the right, this CSS is not generated. This results in the CSS actually being different on almost all pages, resulting in many merged CSS files.
I'm missing an option to just include all the CSS, not matter if its used or not. This might create a substantially larger CSS file, but at least it will be the same file on alle pages, and thus cacheable in the browser.
Upvotes: 2
Reputation: 1488
I would start to compare javascript files merged.
Can you tell me what is the difference ?
For example there can be a case when some javascript is generated with page id like
<script>
var pageId = 77;
</script>
If there is option turn on to move inline javascript to external file then this will be different for each page and finally merger will create new merged version for every page.
So the most important question for now is what is the difference beetwen merged files.
EDIT: The solution for you would be to remove all third part extensions. Clear the /compress/ folder. Then install those third party ext one by one and see which one is causing the problems.
Upvotes: 0