473,507 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

About my cache - control header

123 New Member
below is my HTTP header i want to know am i to put pass year or furture year in the Expires, date, and Last-Modified and if its furture year i was told it must not be more than one year secondly am i to update the year after the year have expire and thridly what is the different between Content-Type: text/html and Content-Type: image/gif or are they the same and lastly where will i put my http bacause when i put between the head tag <head></head> it will show in the broswer. while explaining you can also edit my http to show me

Expand|Select|Wrap|Line Numbers
  1. HTTP/1.1 200 OK
  2. Date: Fri, 30 Oct 2010 13:19:41 GMT
  3. Server: Apache/1.3.3 (Unix)
  4. Cache-Control: max-age=3600, must-revalidate
  5. Expires: Fri, 30 Oct 2010 14:19:41 GMT
  6. Last-Modified: Mon, 29 Jun 2010 02:28:12 GMT
  7. ETag: "3e86-410-3596fbbc"
  8. Content-Length: 1040
  9. Content-Type: text/html
  10.  
Oct 9 '09 #1
1 1498
Dormilich
8,658 Recognized Expert Moderator Expert
@simon2x1
if the expires value is in the past, then obviously the file is outdated

@simon2x1
last modified in the future? doesn’t make sense, eh?

@simon2x1
see MIME-Type. it’s like the difference between “this is a door” and “this is a dog”

@simon2x1
the data you have shown are HTTP/1.x data, thus they are sent by the server (HTML uses the <meta> elements for that)
Oct 9 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
7184
by: Phil Powell | last post by:
// PREVENT CACHING FIRST BEFORE ANYTHING ELSE! header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always...
4
5751
by: John | last post by:
I have read somewhere else in this newsgroup that the way to avoid the message (Warning: Page has Expired blah, blah blah ... ) when one presses the back button is to place the statement...
21
2633
by: Bill H | last post by:
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...
0
1141
by: ethan | last post by:
IIS/ASP appears to be adding extra (unwanted) cache-control headers to all requests handled by ASP and ASP.NET. This does not happen for HTM, JS, GIF, etc requests. How can I prevent the addition...
14
2074
by: Tom.PesterDELETETHISSS | last post by:
Hi, I think this question requires an in depth understanding of how a browser cache works. I hope I can reach an expert here. I may have found a quirk in the asp.net documentation or I don't...
1
2502
by: Jaak | last post by:
I have a problem with cached images... The script first creates some pictures out of avariable source (every time the script runs the pics are different): $im = imagecreatefromjpeg($file);...
18
9121
by: siddharthkhare | last post by:
Hi All, what is the diference between these two cache control header. no-cache and no-store. I have read the w3.org explanation. So lets say I am using only no-cache ....my understanding is...
11
12092
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses master pages. I have some pages that must not be cached on the client. In ASP.NET 1.1 I achieved this using metatags: <meta...
1
1870
by: goliatuy | last post by:
Hi, i'm having some issues with pages that IE don't reload, the problem is that i have other similar sites that don't present that problem, any one know what causes it, and how to fixit. Actualy...
1
2125
by: Francesco | last post by:
Hi guys, I wrote a little script to authorize the users to download a file without showing the actual location of the file. I wrote something like if(authorized) { $file_path = "$site_path"...
0
7223
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
7321
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
7377
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
7488
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
5623
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,...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.