RULES to a specific javascript directory

I can’t implement a rule that doesn’t apply the “cache” to a specific javascript directory. I’ve tried and I can’t apply it.