dpsq8476 2017-04-03 14:35
浏览 73

缓存已呈现的数据库查询页面

Whats the best approach for caching search results on a site so that a user can still use the back button?

The results are pulled from a database query (Laravel & Eloquent) performed using a post request. These are rendered using Blade templates, but when a user clicks on a result, then clicks back I get a

Confirm Form Resubmission

This web page requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so you will repeat any action this page previously performed.

I know if I used the url to pass the variables in the search I would be fine, but is there another way?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
    • ¥88 实在没有想法,需要个思路
    • ¥15 MATLAB报错输入参数太多
    • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
    • ¥15 有赏,i卡绘世画不出
    • ¥15 如何用stata画出文献中常见的安慰剂检验图
    • ¥15 c语言链表结构体数据插入
    • ¥40 使用MATLAB解答线性代数问题
    • ¥15 COCOS的问题COCOS的问题
    • ¥15 FPGA-SRIO初始化失败