VaRest icon indicating copy to clipboard operation
VaRest copied to clipboard

Cache etag support

Open saidmoya12 opened this issue 4 years ago • 3 comments

Good Afternoon.

How can I enable etag cache? I have server working with cache but always return 200 response in unreal but with postman return 304 (Not Modified).

So how I can set If-None-Match header

Thanks!

saidmoya12 avatar Dec 17 '19 18:12 saidmoya12

I'll check what I can do with it. It can be handled even now, but with manual header handling.

ufna avatar Dec 17 '19 19:12 ufna

	if (StandInETag.IsSet())
	{
		HttpRequest->SetHeader(TEXT("If-None-Match"), *StandInETag.GetValue());
	}

ufna avatar Dec 17 '19 19:12 ufna

https://issues.unrealengine.com/issue/UE-36317

ufna avatar Dec 17 '19 19:12 ufna