Skip to content

Commit 2ff8f7f

Browse files
author
James Leigh
committed
issue #640: Disable caching of no repository errors
Signed-off-by: James Leigh <james.leigh@ontotext.com>
1 parent 2da77d3 commit 2ff8f7f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/http/workbench/src/main/java/org/eclipse/rdf4j/workbench/proxy/WorkbenchServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ private void service(final String repoID, final HttpServletRequest req, final Ht
217217
if (repository == null) {
218218
final String noId = config.getInitParameter(NO_REPOSITORY);
219219
if (noId == null || !noId.equals(repoID)) {
220+
resp.setHeader("Cache-Control", "no-cache, no-store");
220221
throw new BadRequestException("No such repository: " + repoID);
221222
}
222223
}

0 commit comments

Comments
 (0)