litesoft
Diff Revisions
440
vs
441
for /trunk/Java/VersionedStaticContentFilter/src/org/litesoft/servlet/versionedstaticcontentfilter/VersionedStaticContentFilter.java
|
@@ -252,8 +252,9 @@ |
252 |
252 |
|
@Override |
253 |
253 |
|
protected boolean shouldNotCache( String pRequestURI ) |
254 |
254 |
|
{ |
255 |
|
- |
int at = pRequestURI.lastIndexOf( '.' ); |
256 |
|
- |
if ( at == -1 ) |
|
255 |
+ |
int at = pRequestURI.indexOf( '?' ); |
|
256 |
+ |
String zURI = (at == -1) ? pRequestURI : pRequestURI.substring( 0, at ); |
|
257 |
+ |
if ( -1 == (at = zURI.lastIndexOf( '.' )) ) |
257 |
258 |
|
{ |
258 |
259 |
|
return false; // No '.' -> Always Cache! |
259 |
260 |
|
} |