nolanlawson / emoji-picker-element

A lightweight emoji picker for the modern web
https://nolanlawson.github.io/emoji-picker-element/
Apache License 2.0
1.47k stars 83 forks source link

Add possibility to disable sending "HEAD" request when it is needed. #397

Open SzateX opened 8 months ago

SzateX commented 8 months ago

Hi,

I'm writing with a change request. I want to set a flag that will disable checking the "ETag" header and sending a "HEAD" request. I have my own server from which I serve emoji-data JSON, but it blocks the reception of "HEAD" requests.

Performance cases are not a problem for me because I have my own caching system.

Thanks in advance for quickly solving my problem.

nolanlawson commented 8 months ago

Your server can accept GET but not HEAD requests?

I'm unsure about this, because it would be a considerable effort to add this option, it would bloat the config options, and it's only needed for servers that do not properly support the HEAD method.

You may be better off using something like patch-package if this is something you need sooner rather than later.