The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Can i setup lastmodiffied if modiffied headers to my vbulleting pages?
Hello,
i want to setup some information in return headers that tells crawling bot that forum topic (for example) was not modiffied so he should not redownload page. How can i do this please? I already have last-modiffied headers for certain file types, but not for whole page which is what i want.. There are some examples: https://stackoverflow.com/questions/...aders-with-php But im unsure how example i can do it in vbuleltin? Thank you |
#2
|
||||
|
||||
Why would you want to do this? It'd be a fair amount of effort, vs the returned reward.
|
#3
|
|||
|
|||
Why You think that that reward is low? I think it is quite important to save server load by telling brosers/bots to not download page again..
|
#4
|
||||
|
||||
If you are worried about server load, from bots downloading text, you need to look into another host.
Anyhow, you can set this in .htaccess # START Expires Headers Code:
ExpiresActive On ExpiresDefault "access plus 1 seconds" ExpiresByType text/html "access plus 1 seconds" ExpiresByType text/css A2628000 ExpiresByType text/richtext A3600 ExpiresByType image/svg+xml A3600 ExpiresByType text/plain A3600 ExpiresByType text/xsd A3600 ExpiresByType text/xsl A3600 ExpiresByType video/asf A2628000 ExpiresByType video/avi A2628000 ExpiresByType image/bmp A2628000 ExpiresByType application/java A2628000 ExpiresByType video/divx A2628000 ExpiresByType application/msword A2628000 ExpiresByType application/x-msdownload A2628000 ExpiresByType image/gif A2628000 ExpiresByType application/x-gzip A2628000 ExpiresByType image/x-icon A2628000 ExpiresByType image/jpeg A2628000 ExpiresByType application/vnd.ms-access A2628000 ExpiresByType audio/midi A2628000 ExpiresByType video/quicktime A2628000 ExpiresByType audio/mpeg A2628000 ExpiresByType video/mp4 A2628000 ExpiresByType video/mpeg A2628000 ExpiresByType application/javascript A2628000 ExpiresByType application/x-javascript A2628000 ExpiresByType application/vnd.ms-project A2628000 ExpiresByType application/vnd.oasis.opendocument.database A2628000 ExpiresByType application/vnd.oasis.opendocument.chart A2628000 ExpiresByType application/vnd.oasis.opendocument.formula A2628000 ExpiresByType application/vnd.oasis.opendocument.graphics A2628000 ExpiresByType application/vnd.oasis.opendocument.presentation A2628000 ExpiresByType application/vnd.oasis.opendocument.spreadsheet A2628000 ExpiresByType application/vnd.oasis.opendocument.text A2628000 ExpiresByType audio/ogg A2628000 ExpiresByType application/pdf A2628000 ExpiresByType image/png A2628000 ExpiresByType application/vnd.ms-powerpoint A2628000 ExpiresByType audio/x-realaudio A2628000 ExpiresByType application/x-shockwave-flash A2628000 ExpiresByType application/x-tar A2628000 ExpiresByType image/tiff A2628000 ExpiresByType audio/wav A2628000 ExpiresByType audio/wma A2628000 ExpiresByType application/vnd.ms-write A2628000 ExpiresByType application/vnd.ms-excel A2628000 ExpiresByType application/zip A2628000 # END Expires Headers |
#5
|
|||
|
|||
I already setup last modiffied headers, but dynamic thread/topic vbulletin pages appears to do not have global expire headers set. It has this set only for elements like images, css etc. But im talking about whole page expire information....
|
#6
|
||||
|
||||
So, you do realize if you send a cache for html content, the browser/bot/etc wont recheck it, until it has expired, even if there is new content, right?
|
#7
|
|||
|
|||
Quote:
|
#9
|
||||
|
||||
Like was mentioned earlier, there would be to much coding to get it to work right, for so little payoff. If you are looking to save server load, it's time to upgrade your server.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|