View Full Version : How do I add anti-caching code in header
October 22nd, 2005, 12:10 PM
I would like to add the following anti-caching code in the header:
Since my photopost is integrated with vbulletin, do I only need to put it in the vbulletin header template? Or should I be sticking it somewhere on photopost as well. Thanks in advance.
October 22nd, 2005, 12:11 PM
I beleive both Vbulletin and Photopost use no-cache in the headers
October 22nd, 2005, 12:31 PM
you mean its already there? We did an experiment once - we placed ads on our photogallery and then compared the number of views reported on our ad server compared to the number of views reported by photopost (by counting up how many times each photo was viewed) and the ad server reported significantly lower veiws. Why would this be?
October 22nd, 2005, 12:41 PM
Definately in there
<!-- no cache headers -->
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="Tue, 21 Nov 2000 05:00:00 GMT" />
<meta http-equiv="cache-control" content="no-cache, must-revalidate" />
<!-- end no cache headers -->
photo views are either cached or written immediately to the photos table in photopost depending on how you have things set
October 22nd, 2005, 01:00 PM
Glad its in there. You mentioned "depending on how you have things set". How do I set it so that the no cache mode is activated? Is there something I need to do?
October 22nd, 2005, 01:42 PM
I was not referring to the cache I was referring to whether your using the view cache or not in global option settings
October 22nd, 2005, 03:43 PM
Chuck - I have 4.8 version. In the admin for that version, there is no cache option. Is there a no-cache option for 4.8?
October 22nd, 2005, 04:58 PM
There is no option for no cache in 5.2 either.
no-cache headers are hard coded into our program forever.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.