satorumurmur / bibi

Bibi | EPUB Reader on your website.
https://bibi.epub.link
MIT License
843 stars 123 forks source link

Reduce HTTP request payload #49

Closed KitaitiMakoto closed 6 years ago

KitaitiMakoto commented 6 years ago

Using /META-INF/container.xml instead of /mimetype to guess whether given book is packaged or not reduces HTTP request payload because /META-INF/container.xml is cached.

It's better if the response is cached to JavaScript object and reused later, but this patch doesn't make anything worse.

satorumurmur commented 6 years ago

@KitaitiMakoto, what you say is right absolutely. Thanks. (At first, I used container.xml. But I changed it later. And now, I've forgotten the reason....)

KitaitiMakoto commented 6 years ago

thx!

KitaitiMakoto commented 6 years ago

@satorumurmur FYI

I've forgotten the reason

I thought the reason might be related to content-type HTTP header.