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:
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!
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
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
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!
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
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
is working on a reply...