<p>I have an http module on a sharepoint site and this module instantiates a custom class and add it to the session and does other initial things for my site.
However, I'm noticing that the http module is being called for all request types (.aspx, .js, .png, .jpg).</p>

<p>Is there any way to have an http module only be called for .net specific page types?</p>

Yeah you can, if you are using a relationship like has_many you just do this
```
```
has_many :memberships, dependent: :destroy
```
```