Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonny Heavey 5 posts 25 karma points
    Dec 17, 2009 @ 16:00
    Jonny Heavey
    0

    Excluding File

    Hi,

    I noticed there was another thread for a similar topic, but it doesn't really go into the detail I need. I have 2 stylesheets for my site, one I would like to be compressed, the other I don't want to be compressed (it is a mobile stylesheet and it doesnt quite work when its compressed). In the other thread you say that you need to add to the exclusion section in the config, and I have tried this to no success. Could you possibly explain what is wrong with this:

    <ExcludedPaths>

    <add path="css/msmmobile.css" />

    </ExcludedPaths>

    Thanks in advance,

    Jonny

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Dec 17, 2009 @ 17:06
    Peter Dijksterhuis
    0

    Not sure, should work. But I've seen different sometimes as well.

    You could try to use this:

    <add path="/css/msmmobile.css" />

    (Note the slash in front)

    HTH,

    Peter

     

  • Jonny Heavey 5 posts 25 karma points
    Dec 17, 2009 @ 17:39
    Jonny Heavey
    0

    I'm afriad that didn't work. Am I correct in saying that this setting should be in the PeterDCompress.config and not the main web.config? Just want to be sure!

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Dec 17, 2009 @ 18:05
    Peter Dijksterhuis
    0

    Yes, that setting should be in the peterdcompress.config

    Is the site live? If so, can I have a look at the code? Perhaphs I can spot something to make it work properly.

    Peter

  • Jonny Heavey 5 posts 25 karma points
    Dec 18, 2009 @ 10:29
    Jonny Heavey
    0

    Hi Peter,

    Thanks once again for your help on this, I'm not sure what has changed... but the file is now being excluded as I want, so everything is good :)

    Cheers,

    Jonny

Please Sign in or register to post replies

Write your reply to:

Draft