缓存图像& ASP页面 [英] Caching images & ASP pages

查看:59
本文介绍了缓存图像& ASP页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在某些(内部网)服务器上遇到了一些定期问题,其中IIS似乎是以意想不到的方式缓存内容,或者是服务器缓存的页面

预计会有新的内容。


第一种情况是我们有标准的Top + Left + Content

framset;左边的框架包含一个显示标准选项的菜单 - 当用户登录时,他们可以使用额外的菜单选项,具体取决于他们的prive >>。
他们的priveleges。菜单是从ASP中的数据库生成的,当用户登录时,Javascript用于重新加载左框架中的页面 - 例如。

重新生成菜单基于登录用户。


这曾经适用于所有服务器,但在某个时间点我发现

人登录但是被困在标准菜单上。如果我们在菜单中右键单击并选择刷新,则会显示正确的(例如扩展的)

菜单。


我不知道IIS的问题在哪里或者可以在ASP中控制...


第二个问题出在我的开发机器上;当我浏览内部网的我的

开发副本时,我没有得到每个菜单项的图标。

但是,当我浏览到实时内联网系统时,正确图形显示为



截图:

我的机器 - http://www.brightnorth.com/news/menu1.gif

普通网站 - < a rel =nofollowhref =http://www.brightnorth.com/news/menu2.giftarget =_ blank> http://www.brightnorth.com/news/menu2.gif


我假设这个纯粹是一个IIS问题。有什么想法吗?

解决方案

这里的一些信息:
http://www.aspfaq.com/2022


-
http://www.aspfaq.com/

(反向回复地址。)



" CJM" < CJ ******* @ newsgroups.nospam>在消息中写道

新闻:Os ************** @ TK2MSFTNGP12.phx.gbl ...

我有过某些(内联网)服务器上的某些定期问题,其中IIS
似乎是以意外方式缓存的东西,或者是服务器缓存的页面,其中有新内容。

第一个情况是我们有一个标准的Top + Left + Content
framset;左侧框架包含一个菜单,显示标准选项 - 用户登录时为
,可以使用额外的菜单选项,具体取决于他们的权限。菜单是从ASP中的DB生成的,当
用户登录时,Javascript用于在左框架中重新加载页面 - 例如,
根据登录用户重新生成菜单。

这曾经适用于所有服务器,但在某个时间点我发现人们登录但却被标准菜单困住了。如果我们在菜单中右键单击并选择刷新,通常会显示正确的(例如
扩展)菜单。

我不知道问题出在哪里IIS或者可以在ASP中控制......

第二个问题出在我的开发机器上;当我浏览我的内部网开发副本时,我没有得到每个菜单项的图标。
但是,当我浏览到实时内联网系统时,会显示正确的图形


屏幕截图:
我的机器 - http ://www.brightnorth.com/news/menu1.gif
正常网站 - http://www.brightnorth.com/news/menu2.gif

我假设这个纯粹是一个IIS问题。有什么想法吗?



Aaron / Stephen,


谢谢。我实际上已经在等待时发现了这个信息(当然是在Aaron的

网站上!)


显然这会停止ASP菜单缓存问题但不是菜单图标....

关于这些的任何想法?


克里斯

>显然,这会停止ASP菜单缓存问题,但不会停止菜单图标....

关于这些的任何想法?




你多久一次改变菜单图标,真的吗?如果您更改

图形,也请更改名称。然后浏览器不会看到仍然在缓存中的旧

图像。


A


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?

解决方案

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?



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


> 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


这篇关于缓存图像&amp; ASP页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆