Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DotNetNuke 4.4 Compression Exclude PathsDotNetNuke 4.4 Compression Exclude Paths
Previous
 
Next
New Post
12/28/2006 11:20 AM
 

Steve,

Can you point us to some documentation outlining the syntax for the compression modules exclude path syntax in the compression.config file?

 

Thanx


Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
New Post
12/28/2006 4:58 PM
 

 I looked at the compression code and the excluded paths logic is pretty straightforward.

At runtime, the requested URL is parsed to a relative path from the root of your web site, so for example, if the Raw URL is something like this...

http://www.gooddogs.com/Dotnetnuke/DesktopModules/Repository/MakeThumbnail.aspx

then after parsing, the 'real path' will be 

DesktopModules/Repository/MakeThumbnail.aspx

Then a call to the IsExcludedPath(string realPath) is made to determine whether or not to exclude the output from that page from compression. If the function returns TRUE, then the page output will not be compressed.

   if(settings.IsExcludedPath(realPath))
   {
      // skip if the file path excludes compression
      return;
   }

The IsExcludedPath function is a simple one

    /// <summary>
    /// Looks for a given path in the list of paths excluded from compression
    /// </summary>
    /// <param name="relUrl">the relative url to check</param>
    /// <returns>true if excluded, false if not</returns>
    public bool IsExcludedPath(string relUrl) {
      return _excludedPaths.Contains(relUrl.ToLower());
    }

As you can see, the function simply does a check to see if the real path that is passed in is in the collection of excluded paths ( converting them to lower case to avoid case sensitive issues ). So there really isn't any 'syntax' or regex type rules for specifying excluded paths, just add a relative path from the DotNetNuke root folder to the page you wish to exclude.

Hope that helps.

 
New Post
12/29/2006 3:15 PM
 
Ok, tx for your help, and i want to ensure what should i do:)
My website is hosted under Godaddy, Deluxe plan
My website address: www.mikroproje.net/portal
My hosting root is: F:\Hosting\username\
And dnn is installed a virtual directory called portal. So to exclude MakeThumbnail.aspx

DesktopModules/Repository/MakeThumbnail.aspx
portal/
DesktopModules/Repository/MakeThumbnail.aspx
F:/hosting/username/portal/
DesktopModules/Repository/MakeThumbnail.aspx

Which one should i use as relative path?

Thanks, and happy new year:)

Or-Rouge Team Or-Rouge
Personally recommend Hostgator for hosting single or multiple DotNetNuke Websites.
DotNetNuke Tips and Tutorials
Install DotNetNuke to Godaddy root
DotNetNuke Türkçe Hakkinda Hersey
 
New Post
12/29/2006 3:39 PM
 
Also, if Steve or John Mitchell could please comment on the interoperability with the PageBlaster that would be great.  Should we not use PageBlaster with this feature?  Or is there a way to turn off the built-in compression and continue to use PageBlaster?  Or, if we can use only one, which one is better?

Thanks for the great work guys.
 
New Post
12/29/2006 3:48 PM
 

 

You should completely remove the core compression module if you are using PageBlaster. PageBlaster does all that the core compression module does and much more.

Here's a post on the differences:

http://www.snapsis.com/tabid/601/forumid/9/postid/4564/view/topic/Default.aspx

 


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DotNetNuke 4.4 Compression Exclude PathsDotNetNuke 4.4 Compression Exclude Paths


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out