473,405 Members | 2,282 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,405 software developers and data experts.

Caching graphics

On my site, multiple pages recycle 90% of the other pages graphics. Mostly
a menu bar up at the top that appears on virtually all pages.

I am probably making a mistake here, but it appears that each page has it's
own cache.

So if Page A loads, I can see the loading of the menu bar (slowness). If
from there I go to Page B, same thing as with Page A. Now if from Page B, I
go back to Page A (but not with the back button, with a menu choice), then
Page A comes up super quick. So am surmising that graphics from Page A is
cached.

So my question is, if I haven't gotten something wrong, can I somehow say,
"cache these graphics for all of my web pages"? Or not?

Thanks ahead,

Daniel
Apr 11 '06 #1
7 1377
Daniel Kaplan wrote:
On my site, multiple pages recycle 90% of the other pages graphics. Mostly
a menu bar up at the top that appears on virtually all pages.

I am probably making a mistake here, but it appears that each page has it's
own cache.

So if Page A loads, I can see the loading of the menu bar (slowness). If
from there I go to Page B, same thing as with Page A. Now if from Page B, I
go back to Page A (but not with the back button, with a menu choice), then
Page A comes up super quick. So am surmising that graphics from Page A is
cached.

So my question is, if I haven't gotten something wrong, can I somehow say,
"cache these graphics for all of my web pages"? Or not?

Thanks ahead,

Daniel


I believe that caching is not standardized among browsers. Each browser
can (and likely does) do it differently. Thus, some might cache a
rendered page -- HTML, CSS, images, audio, etc combined -- while others
might cache the constituents separately. You want the latter, but this
is controlled by the visitors to your Web pages through their choice of
browsers. The most you can do is indicate NOT to cache:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
and I'm not really sure this works.
--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
Apr 11 '06 #2
On Tue, 11 Apr 2006, Daniel Kaplan wrote:
I am probably making a mistake here, but it appears that each page
has it's own cache.


Mistake? news:alt.possessive.its.has.no.apostrophe

But, to your substantive question, I'd advise you to start from
the canonical tutorial for cacheing: http://www.mnot.net/cache_docs/
and to expose your web site to an instance of his cacheability engine
for a report on its properties.

Beyond that, you have to put up with whatever policies the individual
clients apply. Those can differ, but AIUI there's not a lot that one
can do (from the provider side) to make things better - and many
casual attempts to interfere are reputed to make things worse.

You certainly should make sure that your server responds correctly to
an if-modified request. AFAIR his cacheability engine will report on
that aspect, along with the other things that it reports.

hope this is useful
Apr 11 '06 #3
On 11/04/2006 23:12, Alan J. Flavell wrote:

[snip]
You certainly should make sure that your server responds correctly to
an if-modified request. AFAIR his cacheability engine will report on
that aspect, along with the other things that it reports.


A cursory glance at the source suggests that it does, though only the
If-Modified-Since header. Other conditional requests are not tested.

Perhaps when it was written (Feb 2000, according to the Last-Modified
header sent for the source tarball) it wasn't deemed worth checking
other types due to lack of general use, or maybe that he concluded that
support of one infers support of others.

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Apr 12 '06 #4
David E. Ross wrote:
The most you can do is indicate NOT to cache:
Not correct. There's quite a lot one can do in HTTP.
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
If used inside an HTML document, it has some effect on some browsers as
regards to caching the HTML document itself.
and I'm not really sure this works.


It doesn't, of course. How could that work in an image file?
Apr 12 '06 #5
hug
"Jukka K. Korpela" <jk******@cs.tut.fi> wrote:
David E. Ross wrote:
The most you can do is indicate NOT to cache:


Not correct. There's quite a lot one can do in HTTP.
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">


If used inside an HTML document, it has some effect on some browsers as
regards to caching the HTML document itself.
and I'm not really sure this works.


It doesn't, of course. How could that work in an image file?


There is an http "Cache-Control" header. Some browsers honor it,
others don't. I don't really know about other types of caching
forwarders like proxies, I'd assume that they would support the full
http protocol but people throw all kinds of crap out into the
free/open-source world and it all needs to be looked at on an
individual basis. But hell, I still think the GPL and OSF are a
communist plot to destroy the software industry which in conjunction
with M$'s shenanigans has worked, so wtf do I know.

Good luck, keeping your graphics as small as possible is always a good
thing, there are still people stuck on 56k dialup.

--
http://www.ren-prod-inc.com/hug_soft...action=contact
Apr 12 '06 #6

Daniel Kaplan wrote:
On my site, multiple pages recycle 90% of the other pages graphics. Mostly
a menu bar up at the top that appears on virtually all pages.

I am probably making a mistake here, but it appears that each page has it's
own cache.

So if Page A loads, I can see the loading of the menu bar (slowness). If
from there I go to Page B, same thing as with Page A. Now if from Page B, I
go back to Page A (but not with the back button, with a menu choice), then
Page A comes up super quick. So am surmising that graphics from Page A is
cached.

So my question is, if I haven't gotten something wrong, can I somehow say,
"cache these graphics for all of my web pages"? Or not?

Thanks ahead,

Daniel


I believe that you can manipulate the template for frames in order to
get what you want, and only have to change a frame instead of reloading
the whole page.

Apr 12 '06 #7

On Wed, 12 Apr 2006, hug wrote:
There is an http "Cache-Control" header. Some browsers honor it,
others don't. I don't really know about other types of caching
forwarders like proxies,
The well-reputed tutorial at http://www.mnot.net/cache_docs/
could bring you up to a reasonable speed on such matters.
I'd assume that they would support the full
http protocol but people throw all kinds of crap out into the
free/open-source world and it all needs to be looked at on an
individual basis. But hell, I still think the GPL and OSF are a
communist plot to destroy the software industry which in conjunction
with M$'s shenanigans has worked, so wtf do I know.
That might be a good summary of your personal position, but I'm not
sure how you think it's going to be useful to the hon. Usenauts who
read your posting.
Good luck, keeping your graphics as small as possible is always a good
thing, there are still people stuck on 56k dialup.


No disagreement there, but it's not the whole story.

Cacheability is also a factor (other than on first access, of course)
if you want reasonable response over any kind of limited channel.
Which can include broadband when it's congested (naming no names...)

Another thing to take into account (especially for those who build
pages with shove-and-click tools without understanding what's under
the covers) is to avoid referencing multiple copies of the same
graphic under different URLs.
Apr 12 '06 #8

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...
4
by: CLEAR-RCIC | last post by:
I want to write code to prevent IE from caching my pages at certain times. The following META tags prevent the page from caching but images still cache: <meta http-equiv="Cache-Control"...
7
by: Nathan Sokalski | last post by:
I have been trying to find a way to prevent the images on my site from being cached on the user's machine. I want to avoid this because the images used in an Image control often change, yet have...
15
by: olle | last post by:
Hi folks. I learning asp.net and compare it with traditional asp and Access-developing. The issue is this one: 1/I have this Ms Acceess adp-project application that works fine on my Ms Sql...
0
by: Troy Simpson | last post by:
Hi, I have a website which is made up of dynamic pages. Each page that's loaded has some code which looks at which template to load amongst other things, which causes the page to take a little...
5
by: Raj | last post by:
What is the purpose of file system caching while creating a tablespace? Memory on the test server gets used up pretty quickly after a user executes a complex query(database is already activated),...
2
by: George1776 | last post by:
All, I've recently upgraded our production ASP.NET/C# application from framework 1.1 to 2.0. Since then I've been plagued by out-of-memory errors and problems with the cache object (which may...
0
by: jason | last post by:
hi experts, support.microsoft.com/kb/917072 and http://msdn.microsoft.com/msdnmag/issues/06/07/WebAppFollies/ As pointed out in these articles, users might get session variables belong to...
4
by: Hermann | last post by:
My site is a bit slow showing the main page so I thought caching query result in PHP will improve performace. Then I read MySQL documentation and saw that MySQL does have a caching feature. So......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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 project—planning, coding, testing,...

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.