Comments (5)
9b92915
尝试做了点修改,图片地址不改变的话,基本都会被缓存。(当然还受浏览器的缓存设置影响)
但是图片地址改变的话,就不好办了。
比如e-hentai,一张原图,服务器有概率返回不同的最终地址,不过概率不算高。
比如nhentai,每次页面重新加载后,大图的地址有概率指向到其他服务器,如i[编号].nhentai.net
,目测更换地址的概率有一半左右。
hitmio的图片地址倒是比较稳定。
暂存图片的最终地址这个办法应该能继续提高缓存利用率,后面再考虑考虑。
from eh-view-enhance.
缓存失效了吧,图片的连接一般都是hath.network,一个类似区块链的内容分发网络,图片地址变动很正常。
与exhentai.org域名的TCP连接的下行速度为1.5kb/s
这个速度应该比较正常,因为要从图片的单页解析大图地址,而一个图片的单页一般也就2kb左右。
from eh-view-enhance.
我这边使用 9b92915 的脚本测试了一下,已经可以利用缓存了。图片会经历fetching阶段,然后很快变成fetched状态,没有了图片下方加载的进度条。
浏览器本身也无法适应图片地址改变的情况,一旦url改变就会重新加载。我觉得这个情况很正常,可以接受~
from eh-view-enhance.
使用GreasyFork发布的v4.3.1脚本时,图片下方的加载进度条再次出现并加载了,与exhentai.org域名的TCP连接的下行速度为1.5kb/s,请问是缓存失效了还是在验证缓存呢?
from eh-view-enhance.
Completed in 9b92915
from eh-view-enhance.
Related Issues (20)
- Unable to function properly on MacOS and Safari browser. HOT 3
- Multiple page Hitomi.la closes viewer HOT 1
- [Feature Request] option to choose/download between native image format (webp, avif, jxl...etc) HOT 2
- Allow reconfigure of auto page turn keybind HOT 1
- Add auto-open eh-view-enhance on gallery open option HOT 3
- 浏览时经常出现的报错,没有功能异常 HOT 3
- Viewer Shows a Grey Outline HOT 2
- 脚本的图标未显示 HOT 5
- 脚本更新后无法使用 HOT 2
- Big Mode HOT 6
- Pixiv Gifs
- 在chrome下无法在阅读模式加载图片 | Failed to load images via read mode on Chrome HOT 4
- twitter reverse order for post with multiple images attatched for user media page viewing HOT 2
- Question: about download option HOT 2
- Add support for HentaiNexus HOT 1
- 建议:增加“帮助”按钮的辨识度 HOT 1
- Hentai Nexus Image Bug HOT 2
- 建议:推特能增加直接下载功能么? HOT 4
- 建议:点击download时,重新下载509的页面 HOT 2
- 建议:在范围选择页面增加一些快捷按钮
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eh-view-enhance.