V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
qq286735628
V2EX  ›  HTML

如何使用applicationCache的fallback得对ajax请求进行重定向

  •  
  •   qq286735628 ·
    qq286735628 · Jul 30, 2012 · 4106 views
    This topic created in 5032 days ago, the information mentioned may be changed or developed.
    manifest代码

    FALLBACK:
    online.html offline.html


    上述代码让html在离线状态的时候,当请求online.html时候,返回offline.html

    但是实际情况是,在离线的时候,我在console中使用命令$.get('online.html'),查看网络状况,发现返回的依然是online.html并不是offline.html

    是FALLBACK对Ajax请求无效吗?在网上搜索过相关信息,但都没找到有用的资料。
    1 replies    1970-01-01 08:00:00 +08:00
    qq286735628
        1
    qq286735628  
    OP
       Jul 30, 2012
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2891 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:48 · PVG 19:48 · LAX 04:48 · JFK 07:48
    ♥ Do have faith in what you're doing.