Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: xslt caching?

  1. #1
    TNO
    TNO is offline
    Regular Coder
    Join Date
    Apr 2005
    Posts
    213
    Thanks
    2
    Thanked 1 Time in 1 Post

    xslt caching?

    Strangely I can't find any documentation on this...

    Does the browser cache XSL files? Does it just cache the resulting transformation? What about the url's within the xsl file pointing to other xml files? Does anyone know any links with details on this?

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    actually it doesn't matter what the content is all that matters for caching is if u are using the right http-verb (GET) and sending the correct http headers for caching
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow

  • #3
    New Coder
    Join Date
    Feb 2007
    Posts
    36
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Yes.

    At least with Internet Explorer, Opera and Firefox 2 (Firefox 3 does not support well XSLT).

    In most cases you can work offline smoothly once the file has been loaded.

  • #4
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Quote Originally Posted by Rocko View Post
    (Firefox 3 does not support well XSLT).
    Again, that is false. Post an example in the other thread and we can figure out what is wrong.

  • #5
    TNO
    TNO is offline
    Regular Coder
    Join Date
    Apr 2005
    Posts
    213
    Thanks
    2
    Thanked 1 Time in 1 Post
    After playing with it a bit, it does seem to cache everything regardless of its depth within the files. (Quite amazing speed improvement I might add).

    As for the xsl issues I've seen with firefox 3, I think its due to ignorance of the security changes:

    This works:
    <?xml-stylesheet type="text/xsl" href="Foo.xsl"?>
    <?xml-stylesheet type="text/xsl" href="sub/Foo.xsl"?>

    This fails if on the client machine:
    <?xml-stylesheet type="text/xsl" href="../Foo.xsl"?>
    <?xml-stylesheet type="text/xsl" href="../sub/Foo.xsl"?>

    Which is obviously due to the disallowing of relative URLs:

    http://ejohn.org/blog/tightened-local-file-security/

  • #6
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,461
    Thanks
    1
    Thanked 23 Times in 21 Posts
    TNO: No, that may be a very relevant piece of information, worth filing a bug on bugzilla.mozilla.org about.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #7
    New Coder
    Join Date
    Feb 2007
    Posts
    36
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Alex: The bug is here https://bugzilla.mozilla.org/show_bug.cgi?id=230606

    It has been a big discussion over the years but somehow it was decided to leave the restriction by default.

    jkd: As you can see it was not false at all, you can also read the discussion in bugzilla to realise that from the beginning my point of view was shared with many others. I may suggest to think instead of field before make a disqualification, the informatique is a technique, not a religion.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •