Questions tagged [varnish]

Varnish is an open source reverse HTTP proxy with extensive caching abilities, i.e. a web accelerator. It is frequently used in front of websites to cache webpages in memory.

This tag is for questions about Varnish Cache. Varnish cache is a reverse http proxy that caches, i.e. a web accelerator. It is open source software used to speed up websites.

2066 questions
0
votes
1 answer

Magento 1.9 minicart not showing product

I had currently upload my project to new server. On new server i installed varnish . I am adding a product to cart but it is not showing a product into cart. Is it due to varnish ?
0
votes
1 answer

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 malloc,1g -p…
Yoga Fishguts
  • 116
  • 1
  • 7
0
votes
1 answer

Varnish cache doesn't hit first time

I just learned and implemented varnish reverse proxy to increase my website speed. Everything works fine but something minor bothers me. For some reason, when I check page TTFB for the first time, I get .999s, however, when I rerun the test the…
shabk
  • 51
  • 1
  • 9
0
votes
2 answers

SSD mount configuration for Varnish file storage

I have Varnish 5.1.1 on Centos 6.5 and want to Use a fresh SSD for file storage, (my RAM 64GB get full quickly as I have a lot of objects to cache) As said in Varnish Doc I have mounted a tmpfs partition for the working directory : "The shmlog…
kollo
  • 1,285
  • 3
  • 20
  • 33
0
votes
0 answers

Random "http first read error: EOF" errors

I see sporadic fetch errors from backend but backend is normally healthy. It seems that timeout is not the root issue in this case. What could be the reason? * << BeReq >> 98808229 - Begin bereq 98808228 fetch - Timestamp …
0
votes
1 answer

Django, Nginx & Varnish gzip params to be activated

I have a Django app with Gunicorn, going throught Varnish and served with Nginx. MyDjangoApp --> Gunicorn --> Varnish --> Nginx --> Client Which one of the gzip params I have to keep ? In Django ? MIDDLEWARE_CLASSES = ( # Remove Django Gzip…
kollo
  • 1,285
  • 3
  • 20
  • 33
0
votes
1 answer

How to extract and decode base64 parameter in Varnish VCL

In order to invalidate the cache, I'm encoding an url the following way: $clean_url = base64_encode( $url ); http://url_of_the_varnish_host_to_clean/clean/url?v=$clean_url I would like to catch this url to clean and decode it in my vcl file. I…
Vincent Teyssier
  • 2,146
  • 5
  • 25
  • 62
0
votes
1 answer

Sanitize invalid header with Varnish (space before colon)

Let's say we have Varnish configured with Apache as a backend. For some odd reasons, some clients send custom HTTP headers that are badly formed because they have a space before the header's colon (eg. "X-CUSTOM : value"), causing a 400 bad request…
gr0bz
  • 189
  • 1
  • 2
  • 11
0
votes
2 answers

Varnish with wp-touch mobile plugin for wordpress : mobile/desktop theme switch not working

I am using updated 4.7.3 wordpress with wp-touch pro and varnish latest vrsion (5) when i logged in to wordpress dashboard theme switch between desktop theme to mobile and vice versa works well but when i logged out it is not working . varnish…
0
votes
2 answers

magento ssl + varnish

I want to use SSL with varnish on my magento store, with nginx I did a proxy pass to the port 80 (varnish listen it). But when I do that the ESI block returns 404. If I bypass varnish (change proxy port to 8080 for nginx) it works. Varnish config :…
dharth
  • 179
  • 4
  • 12
0
votes
1 answer

cached objects don't expire in Varnish 4.1.1

I have an issue with Varnish 4.1.1. I need expire static content based in TTL. The vcl_backend_response block have the following settings: sub vcl_backend_response { if (beresp.http.Surrogate-Control ~ "ESI/1.0") { unset…
0
votes
1 answer

Varnish not startig up on boot

Varnish 4.1 not starting up after reboot, Nginx - PHP 7.1.2 service varnish status Redirecting to /bin/systemctl status varnish.service * varnish.service - Varnish Cache, a high-performance HTTP accelerator Loaded: loaded…
Rodz
  • 1
  • 1
0
votes
1 answer

Set request attribute in varnish script

Is it possible from varnish vcl script to set an attribute on the request and get it in the backend by java Servlet getAttribute() method? http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getAttribute(java.lang.String)
Humayun
  • 35
  • 5
0
votes
1 answer

Varnish 4: how to purge cache with cookies

Our software uses a cookie "selected_language" when people change language from Spanish to anything else. By default the cookie is not set. We need to cache our site taking into account the language, so our index.php is cached several times,one for…
user2670996
  • 2,654
  • 6
  • 29
  • 45
0
votes
1 answer

Fastly CDN push on demand

Requirements I want to propagate a file to all the fastly POPs as soon as the file is published by some worker or external upload monitoring service. Resonance If my content is propagated through several POPs then each and every new request will…
Yaron
  • 1,199
  • 1
  • 15
  • 35
1 2 3
99
100