Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4731

Just show me how to cache

$
0
0

This is absolutely insane.

Some please give me a config that caches responses from an nginx server in memory for 30 seconds.

nginx is serving static content (like 1kb html pages) and i need haproxy to sit in front of it and cache.

I have tried every single tutorial, and it’s insanely hard to find any guidance anywhere about anything even remotely advanced with haproxy.

I cannot get it to work unless i modify my browser headers, and I’m at a breaking point.

I have been at it for 5 hours and I haven’t gotten anywhere.

It cannot be this difficult.

My code is exactly what the one example that haproxy gives. I have tweaked it in every way possible.

I am using haproxy 2.8 on rhel9

Do i set headers with nginx? I DO NOT care if the browser caches. I need haproxy to serve the content from its memory rather than asking nginx for the common resources.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4731

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>