473,396 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Re: Caching icons in browser

В Четверг 16 октября 2008 17:21, sasuke писал:
Maybe because you monitored the HTTP traffic after viewing the clock
first? In my case there were 75 requests in one minute.
There is many requests indeed, but it's rather normal - Steve has put online
various weird stuff which needs to be loaded :-)

As for the binary clock, my Firefox sends the following commands:
GET /stephen.joung/binclock_8.jpg HTTP/1.1
GET /stephen.joung/binclock_4.jpg HTTP/1.1
GET /stephen.joung/binclock_2.jpg HTTP/1.1
GET /stephen.joung/binclock_1.jpg HTTP/1.1

These commands are sent only once. No more.
Steve, consider setting the proper response headers esp those related
to caching when serving your images. Consult your web servers'
documentation for more details. Google for 'cache response header' or
something along those lines to get started.
Exactly.
In fact, your server isn't transmitting any cache-control directives,
therefore it's up to the browser to use (or not) any caching mechanism
(that's why my Fx is not requesting any data twice, but some other UA could
do so).

Anyway - it's not related to JavaScript, but rather to your http
implementation :-)

Regards,
Mateusz Viste
Oct 16 '08 #1
1 1485
On Oct 16, 6:30pm, Mateusz Viste
<mateusz.visteATmailDO...@invalid.invalidwrote:
16 2008 17:21, sasuke :

There is many requests indeed, but it's rather normal - Steve has put online
various weird stuff which needs to be loaded :-)
weird stuff indeed ;-)

Anyway - it's not related to JavaScript, but rather to your http
implementation :-)
I found out what the problem was, and even though as you correctly
observed it wasn't a javascript problem I will post the solution here
for completeness' sake. I upgraded to Ubuntu 8.04 and as part of the
upgrade I got a new Firefox. For some reason the cache was disabled. I
typed "about:config" in the location bar and pressed the Enter key and
reset "browser.cache.enabled" to True.

Regards, Steve.

Oct 21 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: CJM | last post by:
I've had some periodic problems on certain (intranet)servers where IIS seems to be caching thing in an unexpected way, or is server cached pages where new content is expected. The first...
2
by: Dave Griffiths | last post by:
Hi all Very new to JavaScript, I am trying to cache a number of images as the page loads, is there a max number of images or memory usage before the browser stops caching. My PC has 1G ram so...
24
by: Crom | last post by:
Ok. I want to settle this once and for all. After looking at the source for various, rather sizeable (but not all were so big) web sites that use icons that show up in the addressbar beside the...
1
by: David Ross | last post by:
I am trying to use icons as the image files in the SRC attributes of IMG elements. This seems to work with Mozilla but not with other browsers. The icons were created using an icon editor or...
5
by: R. Ian Lee | last post by:
I have an ASP.NET page that spawns a popup window using javascript's window.open. This works fine. It pops up, you enter some data, press save and everything saves as it should. But, if you...
12
by: Ken Varn | last post by:
Is there anyway within my web application that I can have all browser caching turned off for all aspx pages sent by my IIS server? I need to have all caching off in order for certain things to...
2
by: lanem | last post by:
I am working on a ASP.NET 2.0 web site that has some PDFs that users can download. I'm using an HTTP module to see if the user has permission to view the PDF before loading it. This all works...
1
by: Giggle Girl | last post by:
Hello, I am helping to design a web application that uses 167 little icons on various pages in a framed environment. As is, the app loads each icon on a page by page basis, and if an image...
14
by: rolfejr | last post by:
I am trying to display a PDF in the users browser that is pulled from a binary field in our database, and keep that PDF from caching on the client computer. I can successfully pull the PDF and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.