Best practice for caching?

Posted 8 months 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

Chris

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

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.