The DnD Sanctuary

Pings => Otter Browser Forum => Topic started by: Quetzal on 2021-05-12, 06:56:23

Title: load page in cache ?
Post by: Quetzal on 2021-05-12, 06:56:23
hi, all
an other problem, another question... how to load with javascript a webpage, cached in the cache of otterBro

or , what kind of adress to write in the adress bar to load a page from the cache ?

about:cache gives acces to all the cached page... but how load it from there with an URL ??

thank a lot

PS: #380 works fine there
- the new contentblocking added with #320 now works as it should
- the passwords deletion do works as it should...

- still some difficulties with HTML5 video/content...
Title: Re: load page in cache ?
Post by: Frenzie on 2021-05-12, 09:11:38
The caching mechanism is automated. I'm not quite sure what you're asking for exactly?
Title: Re: load page in cache ?
Post by: Quetzal on 2021-05-14, 15:44:20
well, i've got an heavy JS page, that i load instead of the start-page with the mozaik...
- i builted my own mozaik-page to be abble to have on this "strategic" page something like a js.widget (calendar/alert) and some other stuff in preparation... i load it from a little php.server on my localhost..

it's generaly quite enought speed to built the whole page from JS... everytime i open a new "start-page" (it redirect to my mozaik)
- but sometime it's a few slow to load... then, to load the page in cache when nothing have changed would be i do hope, quicker... nothing to calcul or built... just read and display

i've seen the adress "in cache" are just the same that the one i load... nothing particuliar...
 but i would like to know how to load it with something as "about:cache:http://localhost/xxx/xxx.html

do you know how to do this ?
Title: Re: load page in cache ?
Post by: Frenzie on 2021-05-14, 17:23:13
I'm not sure if that can be done. But unless you're sending along some don't cache HTTP headers it will simply use the cached version. Do the dev tools show that's not happening? :/
Title: Re: load page in cache ?
Post by: Quetzal on 2021-05-15, 08:21:26
well, i'm not sure to be abble to do that :/ 
i understand "http headers".. but i've got no use to play with, or to trick them (for the moment)...

 but thanks, i'm gonna have a look about it ;)