Asset Fingerprint not working

33 views
Skip to first unread message

jitendra shelar

unread,
Oct 21, 2016, 8:35:50 AM10/21/16
to Play Framework
Hi,

I am using this fingerprint feature for first time.
I did the following.

a) Added below to plugins.sbt 

 addSbtPlugin("com.typesafe.sbt" % "sbt-web" % "1.0.0-RC3")

addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.1.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.4")

addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.8")

addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.1")

b) build.sbt

pipelineStages := Seq(rjs, digest)


c) routes
GET     /assets/versioned/*file      controllers.Assets.versioned(path="/public", file: Asset)

In my views, I am trying to access the assets from public/resume folder.
 <a href='@routes.Assets.versioned("resume/"+file)'>@file</a>

and css file 
<link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/main.css")" />

But, It is still showing
http://localhost:9000/assets/versioned/resume/file.txt

Still I don't see the url appended with extra digest.

Can somebody please help me here.

Thanks,
Jitendra


alex s

unread,
Oct 21, 2016, 10:03:07 AM10/21/16
to Play Framework
What does it show for css file?

пятница, 21 октября 2016 г., 15:35:50 UTC+3 пользователь jitendra shelar написал:

alex s

unread,
Oct 21, 2016, 10:08:10 AM10/21/16
to Play Framework
Oh, and it only works in the prod mode by default.

пятница, 21 октября 2016 г., 17:03:07 UTC+3 пользователь alex s написал:

jitendra shelar

unread,
Oct 21, 2016, 1:27:41 PM10/21/16
to Play Framework
Thanks alex for input.
It worked in prod mode.

Thanks alot.

Regards,
Jitendra
Reply all
Reply to author
Forward
0 new messages