File tree Expand file tree Collapse file tree
src/main/java/com/github/greengerong Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -232,21 +232,6 @@ private boolean shouldShowPrerenderedPage(HttpServletRequest request) throws URI
232232 return false ;
233233 }
234234
235- if (hasEscapedFragment (request )) {
236- log .trace ("Request Has _escaped_fragment_; intercept: yes" );
237- return true ;
238- }
239-
240- if (StringUtils .isBlank (userAgent )) {
241- log .trace ("Request has blank userAgent; intercept: no" );
242- return false ;
243- }
244-
245- if (!isInSearchUserAgent (userAgent )) {
246- log .trace ("Request User-Agent is not a search bot; intercept: no" );
247- return false ;
248- }
249-
250235 if (isInResources (url )) {
251236 log .trace ("request is for a (static) resource; intercept: no" );
252237 return false ;
@@ -264,6 +249,21 @@ private boolean shouldShowPrerenderedPage(HttpServletRequest request) throws URI
264249 return false ;
265250 }
266251
252+ if (hasEscapedFragment (request )) {
253+ log .trace ("Request Has _escaped_fragment_; intercept: yes" );
254+ return true ;
255+ }
256+
257+ if (StringUtils .isBlank (userAgent )) {
258+ log .trace ("Request has blank userAgent; intercept: no" );
259+ return false ;
260+ }
261+
262+ if (!isInSearchUserAgent (userAgent )) {
263+ log .trace ("Request User-Agent is not a search bot; intercept: no" );
264+ return false ;
265+ }
266+
267267 log .trace ("Defaulting to request intercept: yes" );
268268 return true ;
269269 }
You can’t perform that action at this time.
0 commit comments