Using hash based caching for resource compilation, ignoring whitespace