Score:0

How to keep Entity Tags (Etags) generated by PHP

in flag

I'm running a small RESTfull api server from a hosted Plesk Obsidian server. A small PHP based REST Api generates ETags for resources and are correct on our development environment. In production we have rely on a hosted Plesk Obsidian based solution. Whatever we try ETags generated in PHP never arrive at the client. I've been through hoster support but they seem unable to solve this.

How can we make sure ETags generated by PHP will arrive at clients? What do I need to tell hoster support to make this happen?

The code to generate the ETag is a simple md5 of the resource provided:

header( 'ETag: ' . md5($payload) );

The ETag disappears from the response on production.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.