Skip to content

Commit

Permalink
remove caching, fixes #176
Browse files Browse the repository at this point in the history
The caching was blocking further requests for different HTTP methods. So, once an e.g. OPTIONS request was cached with a 404, subsequent calls to the same endpoint but via GET where hitting the 404 as well
  • Loading branch information
peterstadler committed Nov 16, 2023
1 parent 898f142 commit 6e6b748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/controller.xql
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ else
(: everything else is passed through :)
(console:log('/data Controller: passthrough'),
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
<cache-control cache="yes"/>
<cache-control cache="no"/>
<set-attribute name="$exist:prefix" value="{$exist:prefix}"/>
<set-attribute name="$exist:controller" value="{$exist:controller}"/>
<set-attribute name="$exist:root" value="{$exist:root}"/>
Expand Down

0 comments on commit 6e6b748

Please sign in to comment.