473,383 Members | 1,877 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,383 software developers and data experts.

Caching images & ASP pages

CJM
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 situation is where we have a standard Top + Left + Content
framset; the left frame contains a menu which shows standard options - when
the user logs in, extra menu options are available to them, depending on
their priveleges. The menu is generated from a DB in ASP, and when the user
logs in, Javascript is used to reload the page in the left frame - eg.
re-generate menu based on logged-in user.

This used to work on all servers, but at some point in time I found that
people were logging in but were stuck with the standard menu. If we
right-clicked in the menu and chose refresh, often the correct (eg expanded)
menu would be shown.

I'm not sure where the problem is IIS or could be controlled in ASP...

The second problem is on my development machine; when I browse to my
development copy of the intranet, I dont get the icons for each menu item.
However, when I browse to the live Intranet system, the correct graphics are
shown.

Screenshots:
My machine - http://www.brightnorth.com/news/menu1.gif
Normal site - http://www.brightnorth.com/news/menu2.gif

I'm assuming that this one is purely an IIS problem. Any thoughts?
Jul 19 '05 #1
12 1756
Some info here:
http://www.aspfaq.com/2022

--
http://www.aspfaq.com/
(Reverse address to reply.)


"CJM" <cj*******@newsgroups.nospam> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
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 situation is where we have a standard Top + Left + Content
framset; the left frame contains a menu which shows standard options - when the user logs in, extra menu options are available to them, depending on
their priveleges. The menu is generated from a DB in ASP, and when the user logs in, Javascript is used to reload the page in the left frame - eg.
re-generate menu based on logged-in user.

This used to work on all servers, but at some point in time I found that
people were logging in but were stuck with the standard menu. If we
right-clicked in the menu and chose refresh, often the correct (eg expanded) menu would be shown.

I'm not sure where the problem is IIS or could be controlled in ASP...

The second problem is on my development machine; when I browse to my
development copy of the intranet, I dont get the icons for each menu item.
However, when I browse to the live Intranet system, the correct graphics are shown.

Screenshots:
My machine - http://www.brightnorth.com/news/menu1.gif
Normal site - http://www.brightnorth.com/news/menu2.gif

I'm assuming that this one is purely an IIS problem. Any thoughts?

Jul 19 '05 #2
CJM
Aaron/Stephen,

Thanks. I'd actually already discovered this info while waiting (on Aaron's
site of course!)

Clearly this stops the ASP menu caching problem but not the menu icons....
Any ideas about these?

Chris

Jul 19 '05 #3
> Clearly this stops the ASP menu caching problem but not the menu icons....
Any ideas about these?


How often are you changing the menu icons, really? If you change the
graphics, change the name too. Then the browser won't look at the old
images still in the cache.

A
Jul 19 '05 #4
CJM
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Clearly this stops the ASP menu caching problem but not the menu icons.... Any ideas about these?


How often are you changing the menu icons, really? If you change the
graphics, change the name too. Then the browser won't look at the old
images still in the cache.

The images never change. Well, they havent so far...

It's not like it's picking up old graphics... it's presumably picking up the
right graphics but not showing them... that is, the images appear to take up
space, but just arent visible...!

The images are each surrounded by an anchor, since they are also used within
the javascript menu top expand each menu group - this functionality still
works...

it's puzzling!

Chris
Jul 19 '05 #5
> The images never change. Well, they havent so far...

It's not like it's picking up old graphics... it's presumably picking up the right graphics but not showing them... that is, the images appear to take up space, but just arent visible...!


? So why do you think this is a caching issue?

A
Jul 19 '05 #6
Hi Chris,

If you choose to view the source code of page in IE, did you see the code
the those images?

Luke

Jul 19 '05 #7
CJM
Luke,

Yes the images are present in the HTML.

I did wonder if the CSS was hiding the images but the same CSS is used on
the development site as is on the live site.

cheers

Chris

"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:4C****************@cpmsftngxa10.phx.gbl...
Hi Chris,

If you choose to view the source code of page in IE, did you see the code
the those images?

Luke

Jul 19 '05 #8
If right click the place, the select "Show Picture", will the image occur?
Are these images files in same folder with your web pages?

Luke

Jul 19 '05 #9
CJM
The image files are in a different folder...

My original problem was that the sub-item images didnt appear, but the main
item images did. In this case, by using show picture the images *would*
appear.

Now both images dont appear, and show picture doesnt seem to work. I'm not
aware of any change in circumstance, but clearly there must be some.

Chris

"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:8D*************@cpmsftngxa10.phx.gbl...
If right click the place, the select "Show Picture", will the image occur?
Are these images files in same folder with your web pages?

Luke

Jul 19 '05 #10
Hi Chris,

In IE, delete all the Internet temporary files. Will this help? And, is the
treeview a server side control? a thrid party component?

Luke

Jul 19 '05 #11
CJM
Luke,

The problem is the same for all users who access the site not just mine.
Besides, this problem has been going on for months, during which time I've
deleted the temporary files plenty of times. However, I thought I'd better
try especially for you(!), but I'm afraid this time was no different
either...

The treeview is handcoded using ASP/JScript - well, I use a ProjectSeven
(PVII) menu script as the basis.

Cheers

Chris
"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:Bb**************@cpmsftngxa10.phx.gbl...
Hi Chris,

In IE, delete all the Internet temporary files. Will this help? And, is the treeview a server side control? a thrid party component?

Luke

Jul 19 '05 #12
CJM
Got the problem sorted now. I re-checked the logs and the two images
concerned were coming up as 404's - there was a small typo in the code! I
didnt notice before because the images are part of a large group that all
were coming up as 200 - didnt notice the 2 x 404 in the middle.

Apologies and thanks for your help.
Jul 19 '05 #13

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

Similar topics

6
by: Mr WZ Boson | last post by:
Hello, I hope you can help - I'm a bit new to PHP. My basic problem is with a page (HTML) which is intended to display an image slideshow. On this page there are a number of links to click...
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...
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"...
2
by: Ian F | last post by:
I have some javascript which allows a header, iframe and picture to be changed when the user clicks a next/previous button. In Opera, if you click next enough times to loop back to the start, or...
1
by: vip001 | last post by:
Hello This is the site developed for one of my client 'Direct2deal.com' (http://www.direct2deal.com) This site has lots of images and hence downloading time of home page i much more..Is there...
8
by: Nick Gilbert | last post by:
Hi, Our development web server (Win 2003 Server) seems to be caching the output of various files (CSS and .aspx files) if they have no query string. The moment you put a question mark in the...
17
by: Fred Nelson | last post by:
Hi: I have written several web applications that obtain their connection strings from the web.config file. This is very easy to use and it makes it easy to move an app from development into...
28
by: Peter Michaux | last post by:
Hi, I'm playing with dynamic script insertion to make a request to the server for a JavaScript file to be automatically run when it arrives in the browser. It works but... The page caching...
0
docdiesel
by: docdiesel | last post by:
The fastest (and cheapest) transfer of data is that which doesn't have to be done - because the data is already there. Or still there - the caching of files is widely known and practised. Each web...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.