[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Firefox Cache, Preload

Posted on 2008-02-09
8
Medium Priority
?
549 Views
Last Modified: 2013-12-07
I am running a kiosk with Firefox 2.0. The kiosk uses html code to display videos on a website. The videos are hosted remotely on Dreamhost. The videos are FLV files played with the JW player. The user navigates around the kiosk and then clicks to play a desired video in a popup window

Since the videos are hosted remotely, and the bandwith at my location is not great, I am looking to speed up the load time of the videos.

I had this idea to make an HTML page that has all of the videos on it, like this:

<embed src="mediaplayer.swf" width="400" height="400" allowfullscreen="false" allowscriptaccess="always" flashvars="&height=400&width=400&autostart=true&file=/videos/anderson.flv" />
<embed src="mediaplayer.swf" width="400" height="400" allowfullscreen="false" allowscriptaccess="always" flashvars="&height=400&width=400&autostart=true&file=/videos/cabello.flv" />
etc...

I would navigate to this file first, then after it was done, run the kiosk. The idea is that the videos will already be in the cache, and it would be faster because they could play from the cache.

Will this work? I do not know how long Firefox keeps the videos in the cache and also do not know if there is a cache for just the browser session or for each window or if they expire after a certain time period etc....
Do I need to change any Firefox (2.0) settings to get this to work? Or, are there meta cache tags that I should employ?

 There are 17 videos for a total of 11MB.

Thank you
0
Comment
Question by:janey1lee
  • 4
  • 4
8 Comments
 

Expert Comment

by:bobert5696
ID: 20858227
Is there a reason you cannot just directly store the videos on the kiosk?
0
 

Author Comment

by:janey1lee
ID: 20858828
Yeah, there are 5 kiosks all over the place, they need to use some sort of centralized location
0
 

Expert Comment

by:bobert5696
ID: 20858932
Ah, I see. Okay, I'm assuming the files are updated periodically then? What you would do, is when the kiosk is started, it downloads the files it needs. You could create a bat file to do this for you, and then you could have them locally, and be updated every time the kiosk starts. Would that work? I can give you the bat file you would need to update if you need it.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 

Author Comment

by:janey1lee
ID: 20858970
Ah, so you mean, make a bat file to download the files and then change my code to point to a local directory? Thats an interesting idea.

Can the bat file be run via a browser window?
0
 

Expert Comment

by:bobert5696
ID: 20859127
yes to the first, no to the second... if it needs to be done via the browser, that can be done aswell, but with the bat file, you can set it to run on startup, then you don't ever have to worry about it :)
0
 

Author Comment

by:janey1lee
ID: 20859168
Great idea! if you could get me started on the bat file, I would be really grateful.
0
 

Accepted Solution

by:
bobert5696 earned 375 total points
ID: 20859354
its very simple, in the folder where you want the files to be downloaded to, this is the code for the bat:

@echo off
wget http://www.sitehere.com/file.swf
wget http://www.sitehere.com/file2.swf
wget http://www.sitehere.com/file3.swf
wget http://www.sitehere.com/file4.swf

You also need a special file in the directory aswell, here is a link: http://rapidshare.com/files/90535084/wget.exe.html  NOTE: it NEEDS to be saved as wget.exe or you will get errors
0
 

Author Closing Comment

by:janey1lee
ID: 31429517
Thank you!
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When I'm searching for answers on Experts Exchange, I often use Google because it's built into my browser.  To search only on Experts Exchange, I use the "site:" search operator, which can be cumbersome to type out each time I want to run a search.…
There is a wide range of advantages associated with the use of ASP.NET. This is why this programming framework is used to create excellent enterprise-class websites, technologies, and web applications.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses
Course of the Month9 days, 23 hours left to enroll

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question