有人知道为什么 Shopware 6 在某些资源的 URL 中使用深层链接代码吗?例如在文档中的路径/_action/document/{documentId}/{deepLinkCode}。为什么不直接使用documentId,它是独一无二的。是为了更好的安全性吗?
.htaccess如果 URI 包含单词/account,我想设置一个自定义标头,例如它应该与以下 URI 匹配http://www.example.com/account,http://www.example.com/account/address。
我尝试使用以下代码,但它不起作用:
<If "%{REQUEST_URI} =~ /account/">
Header set Cache-Control "no-cache, no-store, must-revalidate"
</If>
Run Code Online (Sandbox Code Playgroud)
但是,当我删除 if 语句时,标题设置正确。