Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 26th, 2005, 04:49 AM
pyc pyc is offline
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to pyc
Default Improving HTTP cache options

It's maybe not exactly the forum this message should be posted in, but this is as close match as I could find on p2p.wrox.com ... You should really have some forum about Apache/HTTP protocol or similar...

So here's the question:

Is it possible, for client browser, NOT to make any contacts with web server, if the pictures from the page are stored in cache, when refreshing a page? I noticed that it always makes "re-validation" connection, and finally loading the pictures from the cache, but I don't need that, i just want to pull the pictures from the cache not making any contacts with server.... I tried entering in .htaccess something like:

Header append Cache-Control "public, max-age:604800"
ExpiresActive On
ExpiresByType image/gif A604800

But I think it just won't work... Maybe this is impossible what I'm asking for or it's too dependable on browser's behavior.. I tried both with Firefox and IE...

Greetings,
Marko
 
Old January 28th, 2005, 06:17 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi Yugoslavia,
Try to puse
<script language="javascript">
 function onllod()
{
 MM_preloadImages('images/suren.gif')
}
onllod()
</script>

surendran
(Anything is Possible)





Similar Threads
Thread Thread Starter Forum Replies Last Post
typing abc.com opens http://abc.com and not http:/ nrlahoti ASP.NET 2.0 Professional 1 February 6th, 2008 01:43 PM
Improving development of software rudolfguth Other Programming Languages 2 April 27th, 2007 03:13 PM
Display Options shadowpug VB.NET 2002/2003 Basics 3 March 10th, 2004 04:46 PM
HTTP Status 405 - HTTP method GET .... nsakic Servlets 1 January 25th, 2004 04:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.