Git Product home page Git Product logo

appcachefacts's People

Contributors

ded avatar fhemberger avatar jameswragg avatar peterlubbers avatar pims avatar shinypb avatar stanangeloff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

appcachefacts's Issues

update for SSL versus cross-domain resources

https://github.com/shinypb/appcachefacts/blob/master/index.html#L144

Over SSL, all resources in the manifest must respect the same-origin policy.

From my testing today, Safari 6.0.5 and Firefox 23 behave the same as Chrome. That is, they all work fine with resources that are hosted on different domains, even for a HTTPS web site. I'm not sure how far back this change goes, but that means these browsers are now apparently against the specification (although this does put my mind at ease).

As an aside, hitting Refresh in Firefox does not work at all with Application Cache. It is necessary to create a new tab / window.

mention there can be more than one appcache for one site

I did some testing and I didn't see this information anywhere on the web, so if you can please add it to the page for future reference and education of the masses!

First I wanted to know if I could create two seperate appcaches for one website domain.
=> It looks like that is perfectly possible!
This is important, because I have a dutch and french version, the people visiting the dutch version could have the dutch appcache and vice versa.

I hoped for a moment that the 5MB limit would be per appcache file, but it's not. This is probably per domain.

What also was important is that the caching system is case sensitive!
I use an IIS webserver wich is not, and then I made a 'case sensitivity' error => point proven ;-)

And last but not least: If a page is loaded from the appcache and a resource (image) it needs is not in the appcache, the image is not loaded even if your server is online and you are connected to the internet!!

Thank you for your time, please double check my findings and add them to the wonderfull resource!

cache-control affect the behavior of updating offline cached resources in chrome.

I test application offline features in chrome ( by now , it's 30 ), and what made me confused is that after change my manifest , event the application cache events go well ( checking, downloading, updateready..), but the resources still not update( after I refresh the page again ). However I have done lots of experiments, and it turn out that it is caused by the cache-control.

For example, if cache-control set to max-age:20, then during this 20sec, if I update my manifest file, the page will reloading all the resources within the list, but all the downloading process just use the browser cache( not offline cache, just browser cache created by cache-control ), which means your resources will not be updated even u update your manifest.

And this problem just happen to Chrome Desktop version, all the mobile version I have tested just work well.

Just wonder if anyone else also had found this issue?

Firefox and Expires headers

Discovered this fun appcache fact on some recent work. With Firefox if your cache manifest has an HTTP Expires header set to a past time, then the manifest will not download.

This can be a problem if your framework adds these automatically to get round overly aggressive proxies.

User permission

For the FACT:

Firefox will always ask the user for permission before caching a site for the first time.

Can you clarify that it is ONLY Firefox that has this issue?

And confirm that for all other browsers the experience is seamless.

Thanks.

new bits of content.

dont have the time to add these right now so i'm putting em here for safekeeping

procedure

http://www.slideshare.net/remy.sharp/html5-tutorial-canvas-offfline-sockets slides 46-48

caching and appcache

when you rev the appCache .manifest file, the browser collects all the urls of the assets that need to be updated and see if they need cache validation down at the network layer. The etags/lastmodified/expires headers, etc. are considered, with the browser only fetching what is necessary.

If a file listed in the appCache .manifest file is changed, but the .manifest file itself is not updated or reved, even if there are new caching headers the browser will not refetch.

of course, in order for the files to refetch, the manifest itself still needs to change

Discuss Vary header

I’m quite certain that the Vary header is meaningless in appcache. E.g., if you wanted to serve a different page based on language, you would have to make your site’s URIs vary by language too by using domains or lang=x query strings. If you try to use the Vary header and your application stores server-generated pages where the server outputs different results based on Vary, the user will only see the content as the browser accessed the website the first time.

This is my understanding/assumption, I have not actually tested for real.

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.