Anonymous User 13308688
(@anonymized-13308688)
Same problem here in the last days …. a lot of;
Bad Request
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
Apache Server at default Port 443

any idea?
Hello @anthov50000
Sorry to hear about it. Can you please let me know the issue which you have faced so that I can look more into it.
The 404 error you have noticed is because some users whos browsers already registered the service worker is checking for whether an update of the SW is available or not. As you have already removed the plugin this logs as 404 and the service worker will be automatically removed from those users. If you want to unregister the service worker without causing any 404 logs, add the below script to your website. It will unregister the service worker when user visits the website.
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistrations().then(function(registrations) {
for(let registration of registrations) {
registration.unregister()
}}).catch(function(err) {
console.log('Service Worker registration failed: ', err);
});
}
</script>
How and Where I insert this script ???? better make a step by step. I see many users have this issue
I never see a plugin same.
You can add the JavaScript code either within the header or in the body part.
If you are not that experienced about it, kindly install Header and footer scripts plugin and add the code to the footer part. Refer this detailed article to add JavaScript on WordPress and also for more details.