For applications that do not store Quick Look information within the file, where does Lion (or a Server) store that information? Some applications can store Quick Look information (previews and thumbnails) within the file. Others can not. 

Two aspects to this question

For a file that is local and without integral Quick Look information: 


where does Lion store that information?


For a file that is remote, on an AFP server (Mac OS X Server (Leopard)/AFP 3.2+ or greater) and without integral Quick Look information: 


does Server store the information remotely?


(An AFP client can cache some information locally, with limitations, but I strongly suspect that there must be a more permanent store.)

Initial guesses

Much Quick Look information is stored in the attributes B-tree. 

If so, an attributes B-tree in a more modern version of Mac OS X Server may be potentially better (than older versions of Server) for AFP clients where bandwidth is limited. 

Please, does anyone have more definite answers? 

Reference and other items of interest

Quick Look — Wikipedia

Mac OS X v10.6 to v10.7 API Diffs: QuickLook Changes

Apple Filing Protocol Programming Guide: AFP Client Caching: File Metadata Caching


I don't know whether Quick Look-related information is classed as metadata for AFP client caching purposes.


Technical Note TN1150: HFS Plus Volume Format: Attributes File, in particular: 


  IMPORTANT:
  The exact organization of the attributes B-tree has not been fully designed. Specifically:
  
  
  the structure of the keys in the attribute B-tree has not been finalized and is subject to change, and
  addition attribute's file data record types may be defined.
  


Quick Look Programming Guide: Quick Look Architecture

Quick Look Programming Guide: Saving Previews and Thumbnails in the Document

In Ask Different: 


How do I prevent document preview over slow connections?


There are various other  Quick Look-related questions in Ask Different and Super User but at a glance, none of them answer this question. Examples: 


https://apple.stackexchange.com/search?tab=relevance&amp;pagesize=50&amp;q=quicklook
https://superuser.com/search?tab=relevance&amp;pagesize=50&amp;q=quicklook


No significant amount of Quick Look-related information in application support or cache areas

[macbookpro08-centrim:~] gjp22% date
Fri  5 Aug 2011 08:33:02 BST
[macbookpro08-centrim:~] gjp22% uname -a
Darwin macbookpro08-centrim.home 11.0.0 Darwin Kernel Version 11.0.0: Sat Jun 18 12:56:35 PDT 2011; root:xnu-1699.22.73~1/RELEASE_X86_64 x86_64
[macbookpro08-centrim:~] gjp22% du -sh ~/Library/Application\ Support/com.apple.QuickLook/
4.0K    /Users/gjp22/Library/Application Support/com.apple.QuickLook/
[macbookpro08-centrim:~] gjp22% du -sh ~/Library/Caches/com.apple.quicklook.ui.helper/
 52K    /Users/gjp22/Library/Caches/com.apple.quicklook.ui.helper/
[macbookpro08-centrim:~] gjp22% du -sh ~/Library/Caches/com.apple.QuickLookDaemon
 52K    /Users/gjp22/Library/Caches/com.apple.QuickLookDaemon
[macbookpro08-centrim:~] gjp22% du -sh ~/Library/Caches/com.apple.QuickLookDaemon32/
 52K    /Users/gjp22/Library/Caches/com.apple.QuickLookDaemon32/


Meta

Quick Look (two words, in Finder and elsewhere) seems more proper than QuickLook.
Graham - quick look generate the data on the fly. The inspectors know to use the previews when present, but will do the heavy lifting when needed.

The virtual memory system of course caches these files so it feels faster after the first render until it swaps out or gets disposed if the pages are not marked for a swap to disk.