![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Videochat Solutions
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 48,529
|
How do you REALLY disable website caching?
So I check news sites like CNN a few times a day, and one thing I've noticed is that they never show me cached pages. I've tried the usual HTML tricks to disable caching but I never seem to have perfect success. How do sites like CNN.com do it?
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
HTTP/1.1 200 OK
Server: Powered by Acwebconnecting Date: Tue, 04 Oct 2016 16:20:52 GMT Content-Type: text/html; Charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Vary: Accept-Encoding, Accept-Encoding CDN-Region: n-cdn-us-ec Content-Encoding: gzip You need to set the right headers How to set HTTP headers (for cache-control)? - Stack Overflow 2Much.net | Webcam pay-per-minute billing & streaming software HTTP/1.1 200 OK Date: Tue, 04 Oct 2016 16:34:24 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.1.6 Cache-Control: max-age=2592000 Expires: Thu, 03 Nov 2016 16:34:24 GMT Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 |
![]() |
![]() ![]() ![]() ![]() ![]() |