agektmr / BrowserStorageAbuser

Browser Storage Abuser is a tool to experiment your browser storage limitation on LocalStorage, SessionStorage, WebSQL Database, IndexedDB API and FileSystem API. You can add arbitrary sized files to those storage to see the limit of their size.
demo.agektmr.com/storage/
127 stars 35 forks source link

Add Cache API #5

Open mattijsbliek opened 9 years ago

mattijsbliek commented 9 years ago

Firefox, Chrome, and Opera now offer basic support, so would be great to add this.

My first guess would be that storage for the Cache API is the same as that for IndexedDB, but I might be wrong.

agektmr commented 9 years ago

Great suggestion! Will try to find time to work on it but PRs are always welcomed :)

mattijsbliek commented 9 years ago

Great, I'll try to work on something tomorrow :)

mattijsbliek commented 9 years ago

I'm a bit out of my depth here. Will continue to work on something, but it will take longer than I anticipated.

agektmr commented 9 years ago

No worries. Will have a look myself when I have time.

pieterv commented 8 years ago

Anything happen with this? Would love to do some testing around this API :)

agektmr commented 8 years ago

Unfortunately I'm too busy to work on this soon. Pull Requests are super appreciated.

mattijsbliek commented 8 years ago

I took another look at implementing this and it might be tricky to implement fully. Firefox uses the same quota as for IndexedDB. But since this quota is per origin, it can vary according to how many domains your caching files from. Ideally you would be able to select the number of origins (say 1 through 5) you will be caching from. As a first version however, you could of course just use the root origin only.

More importantly, you can only add things to the Cache API that are served from a secure origin. So the BrowserStorageAbuser demo would need to run on https before the Cache API can be implemented.

I can't take care of the https part for the demo, but I can try giving this another go somewhere in the next week or so.

agektmr commented 8 years ago

Making the site working on HTTPS shouldn't take that much time. I'll work on it.

mattijsbliek commented 8 years ago

Tried giving this another go but I'm having a hard time seeing what's going on in the code, and not being very familiar with Angular doesn't help. I don't think I'll be able to add the Cache API myself, sorry!

agektmr commented 8 years ago

@mattijsbliek thanks for your challenge. I know it's a messy code but can be much simpler with ES6. I'll give it a try when I find some time.

pieterv commented 8 years ago

No worries, thanks for looking into it @mattijsbliek.