I'm working on a module that displays a introduction/welcome message to the user, if the user comes from ie google.com. The module provides a block, and the content of the block is only displayed if the referer contains the string "google.com". The module works ok now, and there are a lot of settings. But there is one major issue - the pagecaching for anonymous users.
If a page is not cached and the page is retrieved with google.com as the referer this page is cached, so even if future anonymous users don't come from google, the content of block is show. And likewise the other way around: If an anonymous user comes to a cached page from google.com the block content doesn't show if the paged is cached by a user, not coming from google.
How can I avoid this? Is there a way to avoid page caching of this block?
Hope this makes sense.
Best,
/Johs.