Reply
Best way to implement code changes?
Old 05-10-2008, 03:53 PM Best way to implement code changes?
jamestl2's Avatar
Mmmm.......... Reindeer

Latest Blog Post:
Posts are Still Slow
Posts: 1,956
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
I'm asking this because when I edit my website's code and styles, I like to test and see the changes I make immediately.

Whenever I make a small edit (like changing a color), my browser doesn't seem to "notice" the changes right away (not until about 15 min. or so have passed, and this applies to both IE and FF, so I didn't think it was a browser related issue).
__________________
Read this if you are new. | PageRank only applies to Web PAGES!
The Psychology of Conspiracies

jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
When You Register, These Ads Go Away!
Old 05-10-2008, 06:45 PM Re: Best way to implement code changes?
chrishirst's Avatar
Super Moderator

Posts: 15,225
Location: Blackpool. UK
Check the server Content Expiry headers.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-10-2008, 07:35 PM Re: Best way to implement code changes?
jamestl2's Avatar
Mmmm.......... Reindeer

Latest Blog Post:
Posts are Still Slow
Posts: 1,956
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Never heard of those before.

Do we check this through the server control panel (cpanel) somewhere? I looked at the installed perl modules, and this is what I found related to HTTP:
Quote:
HTTP:: Daemon::App (0.0.9)HTTP:: Daemon::SSL (1.02)
Honestly though, I have no idea where to look for those...
__________________
Read this if you are new. | PageRank only applies to Web PAGES!
The Psychology of Conspiracies

jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 05-10-2008, 08:01 PM Re: Best way to implement code changes?
VirtuosiMedia's Avatar
Usability > SEO

Posts: 772
If you turn your browser cache off while making changes, that might make a difference too.
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 05-10-2008, 08:24 PM Re: Best way to implement code changes?
jamestl2's Avatar
Mmmm.......... Reindeer

Latest Blog Post:
Posts are Still Slow
Posts: 1,956
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
I have cleared the cache, cookies, temp int files, all of them to no avail.

What I'm thinking your suggesting here is to go to (with FF):
Tools > Options > Advanced > Network > Cache

Then change the "Use up to" setting to 0 MB. Would I be correct?
__________________
Read this if you are new. | PageRank only applies to Web PAGES!
The Psychology of Conspiracies

jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 05-10-2008, 08:25 PM Re: Best way to implement code changes?
chrishirst's Avatar
Super Moderator

Posts: 15,225
Location: Blackpool. UK
http://www.w3.org/Protocols/rfc2616/....html#sec14.21

http://httpd.apache.org/docs/2.0/mod/mod_expires.html
http://www.sitepoint.com/article/eff...acceleration/4

Try using Ctrl+F5 to refresh the page, it will (should) override the Expires header.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-11-2008, 06:48 PM Re: Best way to implement code changes?
jamestl2's Avatar
Mmmm.......... Reindeer

Latest Blog Post:
Posts are Still Slow
Posts: 1,956
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Quote:
Originally Posted by chrishirst View Post
Try using Ctrl+F5 to refresh the page, it will (should) override the Expires header.
Didn't override for some reason.... (Or it did, but the changes I made to the code weren't affected by it or something, as it still looked like the original styles.)

I think I'm in way over my head with this Expires Header directive. I've checked out those links, but they don't say "where" to modify the time, or what I would need to override it for the time being.

Am I just suppose to insert code like this into the webpage being edited itself?
Code:
<meta http-equiv="Expires" content="(the date I want)" />
__________________
Read this if you are new. | PageRank only applies to Web PAGES!
The Psychology of Conspiracies

jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 05-12-2008, 04:29 AM Re: Best way to implement code changes?
chrishirst's Avatar
Super Moderator

Posts: 15,225
Location: Blackpool. UK
Yep, that would work. Set the date and time to be Now()

or in htaccess use;
header set Expires "0"

put it inside a FilesMatch directive to affect only certain extensions.

Bearing in mind it will put the production server load up a bit as every request will serve the files rather than the UA using it's locally cached version.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-15-2008, 12:58 PM Re: Best way to implement code changes?
willcode4beer's Avatar
Webmaster Talker

Posts: 696
Name: Paul Davis
Location: San Francisco
Check to see if your server has a caching proxy installed (like squid).
__________________
Paul Davis
willCode4Beer.com (coding for all the right reasons)
willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 05-15-2008, 03:09 PM Re: Best way to implement code changes?
jamestl2's Avatar
Mmmm.......... Reindeer

Latest Blog Post:
Posts are Still Slow
Posts: 1,956
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
I contacted my host and it seems like they don't have anything like that installed, they recommended I use a site like this to test out whether my ISP had the proxy cache or not:
http://pagewash.com/
__________________
Read this if you are new. | PageRank only applies to Web PAGES!
The Psychology of Conspiracies

jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 05-23-2008, 12:24 PM Re: Best way to implement code changes?
vn5ltr's Avatar
Skilled Talker

Posts: 94
Location: Melbourne, Australia
If they are style changes or similar, append a version number to the end of it.
Example,
HTML Code:
 <link rel="stylesheet" href="http://www.website.com/css/stylesheet.css?v=1" type="text/css" media="screen" />
And just increment the number when you have made changes and would like to force a fresh copy.
vn5ltr is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Best way to implement code changes?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.17317 seconds with 12 queries