Welcome to WebmasterWorld Guest from 100.26.182.28

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

If-Modified-Since and perl/cgi script?

Any way to do this, or fake the date?

     
3:02 am on Nov 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 5, 2003
posts:809
votes: 0


Has any one discovered a way to use If-Modified-Since with a cgi/perl file? If not, is there a way to use .htacces and make up a date for a file or every file in the directory? For example, to make a widget.cgi URL always give out

Last-Modified: Sun, 09 October 2003 02:57:21 GMT

so Google never touches the script again?

8:59 pm on Nov 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


Jesse_Smith,

You could try this:


<Files your-cgi-script.pl>
Header set Last-Modified: "Sun, 09 October 2003 02:57:21 GMT"
</Files>

(See Apache mod_headers [httpd.apache.org])
> so Google never touches the script again?

However, I would not count on this method if it is an absolute requirement that Google never fetch the script again. Normally, they won't re-fetch a page if it hasn't changed since the last time they fetched it. But there's nothing to guarantee that they won't *ever* re-fetch a page.

Jim

9:31 am on Nov 10, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 5, 2003
posts:809
votes: 0


Thanks. Just tried it out, went to the server header section, and it worked! When Google comes by it loves to crash the server. I can take it down when ever I want it to crawl the mod_rewrite pages.
11:00 am on Nov 10, 2003 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38255
votes: 113


Use UnParsed Headers and have the script spit out it's own last mod date.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members