110 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
23
views
Include fully qualified url within PHP code without using an ESI tag [duplicate]
Would like to call a fully qualified URL such as https://www.example.org/abc.html and include that HTML code snippet within a PHP page.
The reason for this is that the entire PHP page is dynamic but ...
1
vote
2
answers
250
views
Symfony Sulu Varnish using ESI
We are using Symfony (Sulu) with Varnish as reverse proxy, with tag based invalidation (xkey) which works as expected. Now we want to use ESI for dynamic blocks on our website, separate from the "...
1
vote
1
answer
560
views
Symfony 6 ESI (Edge Side Includes) not caching
I'm trying to cache a mega-menu on my website, since it doesn't change often and is resource heavy to compute.
The menu is already an embedded controller, I just want to change it to an ESI. I've put ...
0
votes
1
answer
486
views
Using esi includes in Nuxt 2
My goal: Glue Nuxt 3 rendered code inside my old application that is written in Nuxt 2. The glue will be Varnish and using the <esi:includes
My problem:
I have .vue file
<template>
<div&...
0
votes
2
answers
1k
views
How can I use ESI tag for html script including?
I'm trying to reduce the number of requests' connections of js scripts and one option is usage of esi tag.
Like from:
<script src="https://whatever.min.js"></script>
To: <...
0
votes
0
answers
306
views
How to generate fragment url in controller
I looking for possible to generate fragment url without use twig
in twig i can use
{{ render_hinclude(controller('
{{ render_esi(controller('
i see twig extensions but all is not public , protected ....
0
votes
1
answer
820
views
How to receive GET request from URL [duplicate]
I am used to SEND all sorts of requests to 'foreign' URLs or to my web site Server URL and receive responses and such.
And thus, I am used to receive requests as well.
BUT
Only if it targets a PHP ...
1
vote
1
answer
706
views
How can I include esi tags into main esi tag?
I use esi and Varnish as caching proxy server in my project. The main block has ttl with 1 hour and several blocks into with ttl 10 minutes inside. Is it possible to include esi tags into main esi tag ...
1
vote
1
answer
313
views
How to use Varnish ESI with modular PHP templating system
I am looking to implement varnish into a data heavy/user-centric website. How do I setup ESI using a system which uses php to include html templates?
I currently use a custom php templating system (...
2
votes
0
answers
1k
views
Full page caching (FastCGI) + CSRF token (Server side loading SSI, ESI, Ajax) + Nginx
first: I have been reading a lot of SO posts, and did not find a satisfying answer. I hope I did not miss the answer.
Situation:
I'm running a Laravel application (PHP 7.3)
I implemented a full ...
1
vote
1
answer
2k
views
Create invalid Json with Newtonsoft - Allow invalid objects?
I'm deliberately trying to create invalid JSON with Newtonsoft Json, in order to place an ESI include tag, which will fetch two more json nodes.
This is my JsonConverter's WriteJson method:
public ...
1
vote
0
answers
253
views
How to configure Varnish to conditionally ignore cookie based on Vary response header?
I'm using Varnish 3 for caching responses from a web application that uses Edge Side Includes (ESI).
There are generally two types of responses from ESI endpoints:
some are authentication-specific, ...
2
votes
0
answers
890
views
How to include content from other side with ESI in Varnish
I want to use ESI in Varnish to combine content from different sides.
Every side is a small micro service with a small frontend snippet.
ESI should construct the page with the different snippets.
I'...
4
votes
0
answers
342
views
Make varnish cache a synthetic response for failing ESI
We use varnish 4 for caching and processing ESI. For ESI requests that return a 5XX backend error, we return an empty synthetic response.
That empty response should be cached for a few seconds, ...
0
votes
1
answer
363
views
Varnish 4 ESI: bereq.url doesn't read url inside ESI src tag
I use varnish 4, php-fpm 7, nginx, centos 7
My varnish.params:
DAEMON_OPTS="-a :80 -T 127.0.0.1:6082
-f /etc/varnish/default.vcl
-S /etc/varnish/secret
-s ...