cache externel javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christian Ternek

    #1

    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


  • Grant Wagner

    #2
    Re: cache externel javascript

    Christian Ternek wrote:
    [color=blue]
    > 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.[/color]

    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><ente r>

    --
    Grant Wagner <gwagner@agrico reunited.com>
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    Working...