Can a website tell a user's browser to store the entire page locally? [closed] - html

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 days ago.
Improve this question
Can a (single-page) website tell a user's browser to store an entire page locally?
For context: I'm hosting a website on a server that charges according to bandwidth. The contents of the site don't change much, so I'm wondering if the user's browser can store the webpage rather than sending repeat requests for the web page!
I've looked into browser-native cacheing, but that appears to be for further requests triggered after the page's scripts load!

This is usually achieved thanks to PWA and Service workers: https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Offline_Service_workers
Actually it's the only way of doing that I know, it can be a bit tricky but it's quite interesting once you understand everything that you can do with it.

Related

Chrome extension that shows if page has been visited before. Does it exist? If not, would it be hard to make? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have been manually sending my resume to employers and wanted to know whether there is a Chrome extension that shows when I have visited a page before. This is to avoid sending my resume twice to the same company. I looked all over for one and couldn't find anything.
What I wanted would be just a basic icon that is grayed out if this is the first time you visit the page according to your browser history and lights up otherwise.
Does it exist? If not, would it be hard to make? I know a little C++ and understand algorithms in general, but have no other knowledge regarding extensions at all.
Thanks a lot!
I am not sure if it exists, but to solve this problem you can just build a simple chrome extension (yes it's easy if you want to know), chrome.history Api will help you do the trick, use chrome.history.search and change icon color following the result.

How to make an executable game accessible for users to play online [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
There's a little .exe file which contains a game I want to make available on a website (pure HTML), but I don't know how to do it.
What I want to achieve is: when clicked, users shouldn't have to install it but be able to play it on the site.
You can't use or run executables with html. Html and js can not modify directly contents in your PC and use system functions, they can do what they are allowed to by the browser, that communicates with the system and restricts some functioning.
That is why they can be considered "virtual" - they run on the browser that take care of their parsing and viewing.
For the same way you can't either embed it, since embedding requires the ability to run it.

how the ram is used while html page is loaded by browser [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Well I don't know what is the role of ram while any page that is coming from server is loaded by browser
So ultimately I want know how ram is used when we open any website in our browser.
Consider browser as a software which receives an input from the Server & User.
HTML is the input from the server. The browser has to work on it & produce an output. The output is the page that the user sees.
RAM is the primary memory for the browser. It totally depends on the browser on how much of the memory, it needs to render the page for the user.
And how judiciously a browser manages the memory is what everyone refers to the browser performance.
Hope you get a rough idea...
The Megabytes shown to be used by the browsers above, is the RAM used to render a page by them.

What is a better solution to have a duplicate site with some different content? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
My client has got a corporate site and some dealer sites. He would like to have his dealer sites pretty much the same as the corporate site except having different contact information and a different team member page. Here is the question, is there a way that if he updates the corporate site, it updates all the dealer sites as well? Because the content is the same, he does not want to login to every site, copy and paste the content again and again. Any suggestions? I thought about using iframe, but is it good for seo if 95% of the site is iframe?
One method you could use is a singular CMS service that houses all the content for all the sites.
Once the user browses to the site you can provide a host header look up to determine which dealer site (or corporate) the user is browsing to. From this information it should be relatively easy to load different contact information.
As you haven't provided many other details such as web server, programming language we can really only help you with theoretical answers.
Hope this helps.

How did this website do their splash page/age verification? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am looking at this website - http://www.shopmss.com/ - and I was wondering how they did the splash page, age verification and store all on the same URL 'shopmss.com'. You click through 3 screens before you get back to the store.
My secondary question is, can you do this without setting a cookie? i.e. Javascript, that appends the browser bar URL? Or something with mod_rewrite?
EDIT: I thought this was a relevant question to ask because I was exploring the best practice to accomplish the task, I figured it would have something technical. My bad.
The site is setting a cookie called BX. That could be tracking a session, in which they can display different content based on the state of the session.
They are using a frameset. Check the source.