【发布时间】:2020-02-28 05:39:53
【问题描述】:
使用 Opencart 3.0.3.2 我开发了一个模块,它在 Opencart 的管理部分显示产品列表。 每个产品旁边都有一个按钮 - 按钮动作如下:
https://example.com/admin/index.php?route=extension/shipping/mymodule&user_token=W0nBWaeKPjpeHFSMb4QmCqmt3sW7hA6Z&product_id=422&active_tab=1&addfree
通过检查 $this->request->get['addfree'] 在控制器中获取 addfree。
问题在于缓存:
我在 2.3.0.2 安装和 3.0.3.2 安装中安装了相同的模块。两者都有几乎相同的 .htaccess 文件。
3.x 坚持使用 .htaccess 中指定的 Cache-Control: max-age=900 从磁盘缓存加载我上面的 URL
ExpiresByType text/html "access plus 15 minutes"
2.3.0.2 加载与Cache-Control: no-store, no-cache, must-revalidate相同的URL
我不知道为什么会这样。 任何帮助表示赞赏。
【问题讨论】:
标签: php sass opencart dashboard scss-mixins