缓存上一页? [英] Cache the previous page?

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

问题描述

我有一个例程,每页显示60个项目(带缩略图)。

您可以单击任何项​​目并显示包含项目详细信息的新页面。当

用户返回页面时,它再次运行查询以显示所有项目。

有没有办法缓存该页面和图像以便第二次查询

没有执行?


我确实提供了一个使用Java的弹出窗口但不是默认值而不是许多人使用的
。我真的想摆脱第二个问题。 ;)


TIA

解决方案

" Bill H" < maylar69 @热---- COM>在留言中写道

新闻:fu ******************************** @ 4ax.com ...

我有一个例程,每页显示60个项目(带缩略图)。
您可以单击任何项​​目并显示包含项目详细信息的新页面。当用户返回页面时,它再次运行查询以显示所有项目。
有没有办法缓存该页面和图像,以便第二个查询不会执行?

我确实提供了一个使用Java的弹出窗口,但不是默认设置,也不是许多人使用的窗口。我真的想摆脱第二个问题。 ;)

TIA




你为什么要那样做?我在这里遗漏了什么吗?


无论如何,缩略图都应该被浏览器缓存。


Nel。


某些缓存选项在Web浏览器的控制之下,因此用户设置了
。例如,在Internet Explorer中,在工具 - >互联网

选项 - >标题下的设置检查存储的

页面的更新版本有4种选择:

- 每次访问页面

- 每次启动Internet Explorer

- 自动

- 从不


如果你试图覆盖用户的设置,他们可能会不高兴。


-

Tony Marston

http://www.tonymarston.net


" Bill H" < maylar69 @热---- COM>在留言中写道

新闻:fu ******************************** @ 4ax.com ...

我有一个例程,每页显示60个项目(带缩略图)。
您可以单击任何项​​目并显示包含项目详细信息的新页面。当用户返回页面时,它再次运行查询以显示所有项目。
有没有办法缓存该页面和图像,以便第二个查询不会执行?

我确实提供了一个使用Java的弹出窗口,但不是默认设置,也不是许多人使用的窗口。我真的想摆脱第二个问题。 ;)

TIA



星期五,2004年8月13日14:36:07 +0100,Nel < ne *** @ ne14.co.NOSPAMuk>

写道:

" Bill H" < maylar69 @热---- COM>在消息中写道
新闻:fu ******************************** @ 4ax.com .. < blockquote class =post_quotes>我有一个例程,每页显示60个项目(带缩略图)。
您可以单击任何项​​目并显示包含项目详细信息的新页面。当用户返回页面时,它再次运行查询以显示所有项目。
有没有办法缓存该页面和图像,以便第二个查询不会执行?

我确实提供了一个使用Java的弹出窗口,但不是默认设置,也不是许多人使用的窗口。我真的想摆脱第二个问题。 ;)

TIA



为什么要这样做?我在这里遗漏了什么吗?

无论如何,缩略图都应该被浏览器缓存。

Nel。




是的,我意识到图像是缓存的 - 我更感兴趣的是没有

进行查询然后我就是带宽了。这是一个很大的查询,点击很多行并在一个简单的背页上再次运行它简单似乎

a waste。


I have a routine that displays 60 items (with thumbnails) per page.
You can click any item and displays a new page with item details. When
the user back pages it runs the query again to display all the items.
Is there a way to cache that page and images so that second query
doesn''t execute?

I do offer a pop-up window using Java but is not the default and not
used by many. I''d really like to get rid of that second query. ;)

TIA

解决方案

"Bill H" <maylar69@hot----.com> wrote in message
news:fu********************************@4ax.com...

I have a routine that displays 60 items (with thumbnails) per page.
You can click any item and displays a new page with item details. When
the user back pages it runs the query again to display all the items.
Is there a way to cache that page and images so that second query
doesn''t execute?

I do offer a pop-up window using Java but is not the default and not
used by many. I''d really like to get rid of that second query. ;)

TIA



Why would you want to do that? Am I missing something here?

The thumbnails should all be cached by the browser anyway.

Nel.


Some cache options are under the control of the web browser and therefore
set by the user. In Internet Explorer, for example, under Tools->Internet
Options->Settings under the heading "check for newer versions of stored
pages" there are 4 choices:
- Every visit to the page
- Every time you start Internet Explorer
- Automatically
- Never

If you try to override the user''s settings they might not be happy.

--
Tony Marston

http://www.tonymarston.net

"Bill H" <maylar69@hot----.com> wrote in message
news:fu********************************@4ax.com...

I have a routine that displays 60 items (with thumbnails) per page.
You can click any item and displays a new page with item details. When
the user back pages it runs the query again to display all the items.
Is there a way to cache that page and images so that second query
doesn''t execute?

I do offer a pop-up window using Java but is not the default and not
used by many. I''d really like to get rid of that second query. ;)

TIA



On Fri, 13 Aug 2004 14:36:07 +0100, "Nel" <ne***@ne14.co.NOSPAMuk>
wrote:

"Bill H" <maylar69@hot----.com> wrote in message
news:fu********************************@4ax.com.. .

I have a routine that displays 60 items (with thumbnails) per page.
You can click any item and displays a new page with item details. When
the user back pages it runs the query again to display all the items.
Is there a way to cache that page and images so that second query
doesn''t execute?

I do offer a pop-up window using Java but is not the default and not
used by many. I''d really like to get rid of that second query. ;)

TIA



Why would you want to do that? Am I missing something here?

The thumbnails should all be cached by the browser anyway.

Nel.



Yes, I realize the images are cached - I''m more interested in not
doing the query then I am the bandwidth. It''s a large query that hits
a lot of rows and running it again on a simple back page simple seems
a waste.


这篇关于缓存上一页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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