Do I understand you right, that you want to cache files on dispatcher which do not originate from AEM, but from another third-party application sitting next to AEM?
I assume that this is possible; you need to have a dedicated dispatcher farm configuration for this application.
Jörg