Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
タイトルはちょっと悪いか誤解を招くかもしれませんが、ここに私の質問があります:
誰かが過去に私のサイトにアクセスし、しばらくしてから再度アクセスした場合、古いコンテンツが表示されずに新しいコンテンツが表示されるようにする良い方法はありますか?
私は自分の php にこのようなものを追加します - 他のものを書き出す前に必ずヘッダーを送信してください.
header("Cache-Control: no-cache, must-revalidate"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");