diff --git a/src/main/java/com/github/greengerong/PrerenderSeoService.java b/src/main/java/com/github/greengerong/PrerenderSeoService.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/github/greengerong/PrerenderSeoService.java
+++ b/src/main/java/com/github/greengerong/PrerenderSeoService.java
@@ -262,7 +262,8 @@ public class PrerenderSeoService {
         return from(prerenderConfig.getExtensionsToIgnore()).anyMatch(new Predicate<String>() {
             @Override
             public boolean apply(String item) {
-                return url.contains(item.toLowerCase());
+	        		return (url.indexOf('?') >= 0 ? url.substring(0, url.indexOf('?')) : url)
+	        				.toLowerCase().endsWith(item);
             }
         });
     }
Improved file extension checking.

Updated logic to look for file extensions at the end of the URL, or just before the first question mark if one is present. This should prevent matching on subdomains or URL parameter values.