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

Is Apache sends "X-Cache:MISS" header even when caching is off (disable)?

Hi,

Could any boby please help to get the answers for the following questions:

Is Apache always sends "X-Cache:MISS" header even when caching is off (disable)? or

Can we say that cache settings are enable if it sends "X-Cache:MISS" header in the response?

Your help would be appreciated.

Thanks
Anu
Jul 10 '07 #1
8 12876
Motoma
3,237 Expert 2GB
You could try experimenting, however, I would not expect Apache to report any cache information if caching was not configured in the first place.
Jul 10 '07 #2
You mean that the "X-Cache:MISS" header is the normal behaviour in Reponse even if the cache settings are disabled in Apache??

I assume cache settings are disabled in my Apache by seeing the following lines in httpd.conf

# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)
#
# CacheRoot "/var/apache/proxy"
# CacheSize 5
# CacheGcInterval 4
# CacheMaxExpire 24
# CacheLastModifiedFactor 0.1
# CacheDefaultExpire 1
# NoCache a-domain.com another-domain.edu joes.garage-sale.com


Your help would be appreciated
Jul 11 '07 #3
Motoma
3,237 Expert 2GB
I am not sure what help you are looking for. Please elaborate on the issue you are having, as I am afraid your questions are not producing useful answers.
Jul 11 '07 #4
Hi,

I think below information will give the clear picture.

Following is the request and response (I used SOAPUI for webservice request and response):


Request :-
POST http://ukdiscoverywstest.gsk.com/ChemicalHierarchy/services/ChemicalHierarchyServiceV1 HTTP/1.1
Content-Type: text/xml;charset=UTF-8
SOAPAction: "getServiceInfo"
User-Agent: Jakarta Commons-HttpClient/3.0.1
Host: ukdiscoverywstest.gsk.com
Proxy-Connection: Keep-Alive

Response:-
HTTP/1.1 200 OK
Date: Mon, 11 Jun 2007 15:14:53 GMT
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)/Tomcat-5.5
Content-Type: text/xml;charset=utf-8
Via: 1.1 ukdiscoverywstest.gsk.com (Apache/1.3.31)
X-Cache: MISS from ukdiscoverywstest.gsk.com
Transfer-Encoding: chunked


its just that "Cache miss" makes me concerned that caching is actually still turned on. If you confirm that it always sends that header, even when caching is off, then I'd consider this problem is solved.

Thanks
Anu
Jul 12 '07 #5
Motoma
3,237 Expert 2GB
Why not just add a no-cache specifier in your request?
I believe the syntax is:

Pragma: no-cache
Jul 12 '07 #6
Thanks for your interest.

In one of the servlet the following lines are hard coded

response.setContentType("text/xml; charset=utf-8");
response.setContentLength(translated.length());
response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");
response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
response.addHeader("Cache-Control", "post-check=0, pre-check=0");
response.setHeader("Pragma", "no-cache");


Apache (Version: 1.3.31) is not allowed to add "Pragma:no-cache" in httpd.conf file.

Please let me know whether "X-Cache:MISS" is normal behaviour or abnormal?
What is the negative impact of this header?
Jul 16 '07 #7
Motoma
3,237 Expert 2GB
If you are sending Pragma: No-Cache in the request, you do not need to worry about receiving cached data.
Jul 16 '07 #8
Many Thanks , Now I am bit relief.

Please let me know why "X-Cache:MISS" header comes even though Cache settings are disabled in Apache?
Jul 16 '07 #9

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

Similar topics

1
by: Hari Om | last post by:
I am using Oracle 9.2.0.4 on IBM AIX 5.1 L System. Our DB Server had IP of "100.101.102.103" and our Tomcat Application Server (IP of 200.201.202.203) used to talk to above DB onn Port 1521. The...
0
by: Gustaf Liljegren | last post by:
A valid document. A well-formed document. To validate a document. To check a document for well-formedness...? I'm hardly the first writer to run into this problem. There seem to be no good...
72
by: Paminu | last post by:
In math this expression: (a < b) && (b < c) would be described as: a < b < c But why is it that in C these two expressions evaluate to something different for the same values of a, b and...
6
by: José Joye | last post by:
Hello, I'm currently reading the MS Developing Web applications with c# (and VB.net). In the chapter related to Error management, there is a sample about "Page-Level Error Pages" eg: In my...
9
by: anna cypher | last post by:
Was going through the job listings for fun and found one that said: "Required: 5 years .NET experience". Um... before I laugh, was .NET out in 2000? Anna
59
by: Pierre Quentel | last post by:
Hi all, In some program I was testing if a variable was a boolean, with this test : if v in My script didn't work in some cases and I eventually found that for v = 0 the test returned True ...
13
by: alvin.yk | last post by:
Hi, Normally, a piece of code such as <a href="http://www.yahoo.com" onclick="alert('hello');return false;">link</a> will stop the browser from actually going to href's destination....
4
esimond
by: esimond | last post by:
Hi All ! Just joined this big community, and a BIG Swiss Hello in there ! Having recently switched from VB to C#, I indeed still have to discover all the powerful sides of that great...
4
by: e-Ricc | last post by:
Hi guys! Im trying to detect when a user "kills" my c# app using windows task manager, i've tried with the form events _closing and _closed managing for example putting an if inside to detect...
1
by: Hari Om | last post by:
I am using Oracle 9.2.0.4 on IBM AIX 5.1 L System. Our DB Server had IP of "100.101.102.103" and our Tomcat Application Server (IP of 200.201.202.203) used to talk to above DB onn Port 1521. The...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
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...

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.