Best practice for caching?

Posted 1 year ago by addorange

Hi there,

I run a website with some complex views, consisting of multiple partials to be rendered with data. Now I'm thinking about best practice to cache these sites.

All pages contain an CSRF-Token as a -tag and there are various vue.js-components on each page that may depend on this CSRF-Token. Furthermore there is the possibility to log in as a user and get further functionality/data shown.

Is there any strategy how to use caching efficiently and successfully on such a site? Caching like the full response may possibly result in CSRF-issues, caching only parts may not be efficient enough?

Kind regards


Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.