Share via

Azure Front Door - throws error ERR_HTTP2_PROTOCOL_ERROR when requesting css and js files

Robin Nord 0 Reputation points
2023-06-23T10:12:11.63+00:00

Hello!

As the title states when accessing my web app and trying to load any js and css files through the Azure Front Door custom domain I've setup, I get this error thrown "ERR_HTTP2_PROTOCOL_ERROR".

The Azure Front Door is connected to a DNS and also an app service node js application. When accessing the App service application directly, without passing through my AFD, everything works fine and no errors are thrown.

What could the causing problem be here? I've no really large files to be fetched and I've tried to increase the request timeout on my AFD to be 240 seconds - but still the css and js files are throwing these errors.

Azure Front Door
Azure Front Door

An Azure service that provides a cloud content delivery network with threat protection.

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

{count} votes

1 answer

Sort by: Most helpful
  1. Igor Golivets 0 Reputation points
    2026-03-13T15:11:24.1733333+00:00

    It turned out that compression was enabled on nodeJS side of static webapp and after we disabled it the problem is solved with error net::ERR_HTTP2_PROTOCOL_ERROR or NET_PARTIAL_TRANSFER on Firefox, seems AFD tries to compress the already compressed assets second time.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.