Hi Manu, As Thilini said we wanted to have a naming convention to identify and locate client side js files matching the handlebar templates easily.
thanks, Chanaka On Wed, Apr 5, 2017 at 11:13 AM, Thilini Shanika <[email protected]> wrote: > 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 <[email protected]> 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 : [email protected] >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> 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: [email protected] > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chanaka Jayasena Associate Tech Lead, email: [email protected]; cell: +94 77 4464006 blog: http://chanaka3d.blogspot.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
