Skip to content

Commit b3d4315

Browse files
tulinkryVladimir Kotal
authored andcommitted
Do not cache the front page and search results (#2433)
- This should avoid caching the from page for 30 minutes - The view can be inconsistent with the system state - different cookies - different messages - different projects - The same applies for search results - Other resources are hidden behind the 30 minutes cache interval
1 parent 92ee3ae commit b3d4315

File tree

1 file changed

+10
-2
lines changed
  • opengrok-web/src/main/webapp/WEB-INF

1 file changed

+10
-2
lines changed

opengrok-web/src/main/webapp/WEB-INF/web.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,17 @@
5454
<dispatcher>REQUEST</dispatcher>
5555
</filter-mapping>
5656
<filter-mapping>
57-
<!-- Place this mapping last, so /* wildcard is only a fallback -->
5857
<filter-name>ExpiresHalfHourFilter</filter-name>
59-
<url-pattern>/*</url-pattern>
58+
<url-pattern>/history/*</url-pattern>
59+
<url-pattern>/xref/*</url-pattern>
60+
<url-pattern>/raw/*</url-pattern>
61+
<url-pattern>/download/*</url-pattern>
62+
<url-pattern>/diff/*</url-pattern>
63+
<url-pattern>/more/*</url-pattern>
64+
<url-pattern>/rss/*</url-pattern>
65+
<url-pattern>/error</url-pattern>
66+
<url-pattern>/enoent</url-pattern>
67+
<url-pattern>/eforbidden</url-pattern>
6068
<dispatcher>REQUEST</dispatcher>
6169
</filter-mapping>
6270
<servlet>

0 commit comments

Comments
 (0)