Questions tagged [varnish]
The varnish tag has no usage guidance.
5
questions
1
vote
2
answers
958
views
Bypass Varnish cache if user is logged in
Is it possible to bypass the Varnish cache when the user is logged in? I've tried using the "CraftSessionId" cookie, but it seems that it is also set for non logged in users.
1
vote
1
answer
770
views
How to create a static JSON files with Element API and cache it with Varnish
Is it possible to create static JSON file using the Element API plugin?
What I then want to do was cache that file probably using Varnish or push it to an S3 bucket.
If I was to cache it I would ...
1
vote
3
answers
917
views
Is there a way to manually trigger an asset transform before calling getUrl()?
I have a site where I serve quite the amount of images which are saved on Google Cloud Storage. I have set generateTransformsBeforePageLoad to true in my general config because I'm caching the output ...
6
votes
1
answer
2k
views
Varnish 4.x and Craft
Is there any vcl file to use with Craft? I saw here an amazing answer about Varnish and Craft and there is a 3.x configuration file but i need a newer one for Varnish 4 and i don’t know Varnish ...
29
votes
3
answers
2k
views
How do I configure Varnish to work with Craft?
Has anyone successfully used Varnish with a Craft build? I'm trying to set up Varnish on my server but I'm very new at this. Can anyone share their config file or point me in the right direction? We ...