Copied to clipboard

Flag this post as spam?

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


  • David Watkin 3 posts 24 karma points
    May 17, 2010 @ 20:21
    David Watkin
    0

    Excluding WebResource.axd (Umbraco 4.0.3)

    I've added PeterD.Compress to the testing version of my Umbraco site, but it is causing javascript errors on the pages with templates that have c# coding (focus on the log in button on the log in page, some update panels). I think it's because the WebResource.axd javascript is getting picked up by the PeterD.Compress module.

    I've tried adding WebResource.axd to the excluded paths on the PeterDCompress.config, but I'm not having any luck with that.

    I tried <add path="WebResource.axd" /> and <add path="/WebResource.axd" /> and adding in some wildcards.

    The site is running on Windows 2003 and IIS6

    Thanks,

    David

  • Peter Dijksterhuis 1442 posts 1722 karma points
    May 17, 2010 @ 21:06
    Peter Dijksterhuis
    0

    Hi David,

    can you check this line in the web.config:

    scriptResourceHandler enableCompression="false"

    Do you have enableCompression set to false? If not, please try that.

    Peter

  • David Watkin 3 posts 24 karma points
    May 18, 2010 @ 18:10
    David Watkin
    1

    Hi Peter, did have that set.

    What I did find that worked was adjust the httphandlers in the web.config:

    <remove verb="*" path="js.axd,css.axd"/> 
    <add verb="*" path="js.axd,css.axd" type="PeterD.Compress.CompressionHandler,PeterD.Compress"/>
    <remove verb="*" path="ScriptResource.axd"/><add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    <remove verb="*" path="WebResource.axd"/>

Please Sign in or register to post replies

Write your reply to:

Draft