Code Monkey home page Code Monkey logo

Comments (5)

MapoMagpie avatar MapoMagpie commented on June 27, 2024 1

9b92915
尝试做了点修改,图片地址不改变的话,基本都会被缓存。(当然还受浏览器的缓存设置影响)
但是图片地址改变的话,就不好办了。
比如e-hentai,一张原图,服务器有概率返回不同的最终地址,不过概率不算高。
比如nhentai,每次页面重新加载后,大图的地址有概率指向到其他服务器,如i[编号].nhentai.net,目测更换地址的概率有一半左右。
hitmio的图片地址倒是比较稳定。

暂存图片的最终地址这个办法应该能继续提高缓存利用率,后面再考虑考虑。

from eh-view-enhance.

MapoMagpie avatar MapoMagpie commented on June 27, 2024 1

缓存失效了吧,图片的连接一般都是hath.network,一个类似区块链的内容分发网络,图片地址变动很正常。

与exhentai.org域名的TCP连接的下行速度为1.5kb/s

这个速度应该比较正常,因为要从图片的单页解析大图地址,而一个图片的单页一般也就2kb左右。

from eh-view-enhance.

Pil0tXia avatar Pil0tXia commented on June 27, 2024

@MapoMagpie

我这边使用 9b92915 的脚本测试了一下,已经可以利用缓存了。图片会经历fetching阶段,然后很快变成fetched状态,没有了图片下方加载的进度条。

浏览器本身也无法适应图片地址改变的情况,一旦url改变就会重新加载。我觉得这个情况很正常,可以接受~

from eh-view-enhance.

Pil0tXia avatar Pil0tXia commented on June 27, 2024

使用GreasyFork发布的v4.3.1脚本时,图片下方的加载进度条再次出现并加载了,与exhentai.org域名的TCP连接的下行速度为1.5kb/s,请问是缓存失效了还是在验证缓存呢?

from eh-view-enhance.

Pil0tXia avatar Pil0tXia commented on June 27, 2024

Completed in 9b92915

from eh-view-enhance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.