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

cache externel javascript

Hello !

I have the problem that in some cases the external
javascript files are not cached.

I have the website on an internal server.

If I open the site from the ie with the ipaddress(
http://192.168.200.100/zeiterfassung) the javascript-files
will not be cached but if I use the dns name (http://xy/zeiterfassung) the
files are cached.

I have no idea why in the one case it will cached and in the other case not!

Please help!

Thanks
Christian
Jul 23 '05 #1
1 1311
Christian Ternek wrote:
If I open the site from the ie with the ipaddress(
http://192.168.200.100/zeiterfassung) the javascript-files
will not be cached but if I use the dns name (http://xy/zeiterfassung) the
files are cached.


Since I'm not sure what browser you are using and I'm not sure how you are
determining that the files in question are not being cached, I can only guess at
a reason.

Assuming that 192.168.200.100 and xy point at the exact same HTTP server
instance with the exact same Cache-Control header configuration, the only thing
I can suggest is that the browser is aware that the first page is loading from a
site on your local subnet and is not caching because it figures uncached
retrieval is fast enough.

You may also want to telnet into the server:

telnet 192.168.200.100 80

and do a HEAD for the resource to see if there are any Cache-Control directives
being sent.

HEAD /path/to/the/resource HTTP/1.0<enter><enter>

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
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...
2
by: Todd Anderson | last post by:
I'm ussing this <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> to keep me html page from caching. But it's not working. Is there a javascript that will do this? Thanks in advance for your help.
1
by: onewebclick | last post by:
Is there a way to detect a browser cache is full using javascript or HTML thorugh a web page and inform the user to clear the cache to improve performance of the website. It looks like google's...
3
by: Sergey Surkov | last post by:
Hello Does anybody know how to make FireFox to cache data that comes via XMLHttpRequest? Here is the issue I deal with: - On the web server (apache2) I have a static xml file test.xml - When I...
7
by: moondaddy | last post by:
I want to dynamically create a JavaScript file and cache it on the client for re-use. I know how to write javascript to a web page from the code behind, but I don't know how to actually create a...
4
by: Angel | last post by:
I am saving items in the cache in my code behind. By setting these items with an expiration are these items only available for the page its being set or throughout the application? My next question...
5
by: kaczmar2 | last post by:
I have a page written in ASP.NET that uses some Javascript to modidy the .innerHTML property of a DIV tag. The page works great in FireFox, but in IE6, the page tends to pull the content out of...
18
by: Mark | last post by:
Hello. I am looking for a way to download and cache a web page that the user has not yet requested, and write the web page to the browser cache without displaying it. My intention is to improve...
21
by: nsimeonov | last post by:
Hello, Does anyone have any idea how Gmail does this? I have a web application and people complain sometimes about some problems and most of the time it turns out it's the browser's cache...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.