Marcus
Marcus

Reputation: 1017

How to minimize cookie size in TYPO3?

When executing the chrome dev tool audit for my TYPO3 site, Chrome gives the following warning:

Minimize cookie size
The average cookie size for all requests on this page is 40 B

Is there a way to reduce cookie size in TYPO3 via typoscript, .htaccess or other functions?

EDIT:

I know about the fact that the chrome devtool warning is incorrect. But I still need the information if the size of the cookies can be reduced via TYPO3.

Upvotes: 1

Views: 456

Answers (1)

cweiske
cweiske

Reputation: 31107

No, you cannot reduce the cookie size since the TYPO3 fe_typo_user cookie by default only includes the session ID. You can't get that any smaller.

What you could do is referencing the assets (images, css, javascript) from a different domain (assets.example.org). The TYPO3 cookie will then not be transmitted to this different domain.

Upvotes: 1

Related Questions