somuch72
somuch72

Reputation: 366

Is it okay to push manifest.json on HTTP/2? How should I delacre it as?

I want to push (HTTP/2 push, not push notification) manifest.json, is it okay? how should I declare it as? If it's image, usually as=image, css file as=style, for manifest.json?

Edit, to expand info, this is server push using Link header. The reason I want to push is to make it quicker as it's always loaded late. Here's the screenshot for normal loading of manifest.json screenshot

Upvotes: 0

Views: 449

Answers (1)

somuch72
somuch72

Reputation: 366

To preload JSON file, whether using html preload or header preload, the as attribute is fetch according to https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content#What_types_of_content_can_be_preloaded

Upvotes: 1

Related Questions