Hi Manu,

We used this URL pattern as a convention so that one can easily identify
the front end js file which is included in each page (Page: /apis/{apiID}/
and corresponding frontend js URL : public/js/apis/{apiID}/index.js)

Are there any drawbacks of using this? If there are drawbacks we'll fix
this.

@Chanaka & Kasun
Do you have anything to add?


Thanks
Thilini

On Tue, Apr 4, 2017 at 6:31 PM, Manuranga Perera <m...@wso2.com> wrote:

> I was wondering why dynamic URL's are used to server static content [1].
> It will prevent the browser caching them effectively and I don't see any
> advantage since it's static file.
>
> Can someone please explain
>
> [1] https://github.com/wso2/carbon-apimgt/blob/master/
> components/web/apps/org.wso2.carbon.apimgt.store/src/main/
> public/js/apis/%7BapiId%7D/index.js
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thilini Shanika
Senior Software Engineer
WSO2, Inc.; http://wso2.com
20, Palmgrove Avenue, Colombo 3

E-mail: tgtshan...@gmail.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to