public function asUrl($appSecret = null)
    {
        $this->resetCompiledValues();

        if ($appSecret) {
            $this->addAppSecretProofModifier($appSecret);
        }

        $this->compileModifiers();
        $this->compileFields();

        return $this->compileUrl();
    }