optimising sitespeed with caching

Yes, if your website uses cookies. GDPR and most other privacy laws require that you disclose to visitors what information you collect from them, such as their personal data and what you do with this information. If you use cookies to collect data from your site users, then you must have a cookie policy.