dynamic page not displaying correctly when Varnish hosting ignores query string parameters

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com
Hàng ngàn mã giảm giá shopee 0đ hôm nay cập nhật tại đây

I have a WP site with managed hosting that uses Varnish. I have a landing page that displays the appropriate images based on a couple arguments passed through the query string. So for example, depending on where the user is requesting this page from, the URL might be www.example.com/landing?v=1 or www.example.com/landing?v=2… and each of those pages would contain a different logo image that is determined by the value of v in the query string.

It seems that the default behavior for Varnish is to serve the cached version of the page and ignore (or maybe strip) any query string parameters. As a result, both of the URLs above display the same exact page (using the default image coded into the page), which is not correct for either.

Ideally I’d like to use the cached version of that page and still display the logo dynamically, but something tells me that’s not possible. Is it? If so, is there some configuration file that will tell Varnish to do just that rather than rendering it 100% from the cached version as if there was no query string?

If that is not possible, is there a way to specify that a page is not to be served from the cache and to render it dynamically, fresh from scratch on each request while still serving all other pages from the cache?

And what about Google Analytics UTM parameters? Even though it doesn’t affect how the page displays, having those parameters ignored is very problematic. How is that typically handled?

Unless there is a very simple config answer, I’m not asking for any code. I just need a starting point (advice on WP best practice as it pertains too caching and dynamic content) so I can figure out what I can configure myself (and what should be configured differently) and what I’ll need to ask the hosting admins to modify.

Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
  • Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
  • Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
  • Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.

Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com