Caches_action - can I change the path?

How can I change:

subdomain.domain.com/directory.file.cache

to

directory/file.cache

I’d like to set how my action cache files are created.