cache the embed code when appropriate