CSS file not updating when deploying app

732 views
Skip to first unread message

Mike

unread,
Dec 2, 2011, 5:32:44 AM12/2/11
to Google App Engine
Hey

I have made changes to one of my CSS files, however after deploying my
application the changes to the CSS are not being reflected in the live
CSS. If I go to the explicit version number of the app I.e.
1.myappid.appspot.com the changes to the CSS are apparent.

Is this a server caching issue that will sort itself out or do I need
to do something to "fix" this?

Thanks

Rohan Chandiramani

unread,
Dec 2, 2011, 5:51:34 AM12/2/11
to google-a...@googlegroups.com
I think Ctrl-F5 solves this.

Brandon Wirtz

unread,
Dec 2, 2011, 5:52:34 AM12/2/11
to google-a...@googlegroups.com
Likely you set the expiration long, and the edgecache cached the old
version. Your app.yaml specifies the settings for a default on static
files.

Hey

Thanks

--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to
google-appengi...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.


Brandon Wirtz

unread,
Dec 2, 2011, 5:57:02 AM12/2/11
to google-a...@googlegroups.com

Not if edgecache locked on to it. If it is local then yes. 

 

Also consider installing Fiddler 2 on your system, it helps make sure you are always looking at live versions, and will tell you what cache headers are being sent.  It will also tell you of 301’s 302’s and the latency and through put of your requests.

 

From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of Rohan Chandiramani
Sent: Friday, December 02, 2011 2:52 AM
To: google-a...@googlegroups.com
Subject: [google-appengine] Re: CSS file not updating when deploying app

 

I think Ctrl-F5 solves this.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.

To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/pP0B0lBQKWgJ.

Mike

unread,
Dec 2, 2011, 6:19:04 AM12/2/11
to Google App Engine
Ctrl + F5 was my first solution, needless to say it doesn't work as
Brandon suggested.

I have set the expiration of css files to 7 days in my appengine-
web.xml, I'm sure this hasn't caused an issue before when updating CSS
files though.

Would it be worth reducing this or am I just going to have to wait 7
days before app engine "updates" the CSS to the new version I
deployed?

Thanks

On Dec 2, 10:57 am, "Brandon Wirtz" <drak...@digerat.com> wrote:
> Not if edgecache locked on to it. If it is local then yes.
>
> Also consider installing Fiddler 2 on your system, it helps make sure you
> are always looking at live versions, and will tell you what cache headers
> are being sent.  It will also tell you of 301's 302's and the latency and
> through put of your requests.
>
> From: google-a...@googlegroups.com
> [mailto:google-a...@googlegroups.com] On Behalf Of Rohan Chandiramani
> Sent: Friday, December 02, 2011 2:52 AM
> To: google-a...@googlegroups.com
> Subject: [google-appengine] Re: CSS file not updating when deploying app
>
> I think Ctrl-F5 solves this.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.

> To view this discussion on the web visithttps://groups.google.com/d/msg/google-appengine/-/pP0B0lBQKWgJ.

voscausa

unread,
Dec 2, 2011, 7:41:10 AM12/2/11
to google-a...@googlegroups.com
I never have these problems. 
I see my changes right away. I'am using Stylizer to change my CSS in real time and for testing in different browsers. And than I save (update) my changed CSS in my Eclipse / Pydev static folder of my project. 
After uploading the new changed CSS I also see the changes. Most of the time I'am using Chrome with Firebug Lite and Firefox with webtools.

JH

unread,
Dec 2, 2011, 9:00:02 AM12/2/11
to Google App Engine
try using a cache-busting stragegy, like "mystyle.css?1234" You could
even insert the current built of your app for 1234 so all caches break
each time you update your app

Brandon Wirtz

unread,
Dec 2, 2011, 1:00:07 PM12/2/11
to google-a...@googlegroups.com
Don't put Query strings in your css links, that is a horrible hack. Set your
cache headers, or version your files in the name.

Query strings for cache busting hard coded in the HTML will bust caching for
users later as well.


-----Original Message-----
From: google-a...@googlegroups.com
[mailto:google-a...@googlegroups.com] On Behalf Of JH
Sent: Friday, December 02, 2011 6:00 AM
To: Google App Engine

Subject: [google-appengine] Re: CSS file not updating when deploying app

--


You received this message because you are subscribed to the Google Groups
"Google App Engine" group.

Shubham Yedage

unread,
Dec 28, 2017, 9:26:01 AM12/28/17
to Google App Engine
Hello Brandon, I am facing same issue where even after updating java script I am not able to look changes on my local browser. I guess for my IP app engine has cached changes. Can you provide descriptive steps for identifying and fixing issue. Thanks!
Reply all
Reply to author
Forward
0 new messages